Well, I am not sure it is a bug. I just tried this after reading the
manual page and the exec built-in command. I was expecting to have the
iconv command be called on the standard output of the shell script.
The script below outputs 0 as exec return status and the string is yet
given as ISO-8859-1. One of these is probably not correct though, shall
we expect a status = 1 if no redirection is done?
Repeat-By:
A simple script, that should be saved in ISO-8859-1 encoding system:
#!/bin/bash
exec | iconv -f ISO_8859-1 -t UTF-8
echo exec status $?
echo " 15) Valérie Leulliot - Mon homme blessé "
exit 0
Thanks a lot and regards.
- fpo