Correct, my idea was to redirect the output of the whole script. The
example used a sample 'echo' but it could instead produce dynamically
some ISO-8859 encoded strings, due to some external constraints (ie.
database). I thought it could be an easy way to do that in a single
script. And your la
Bob Proulx writes:
> Beyond this I am not sure what you wanted to do with exec. You may
> have wanted this:
>
> exec iconv -f ISO_8859-1 -t UTF-8
I think he rather wants this:
exec > >(iconv -f ISO_8859-1 -t UTF-8)
(See Process Substitution in the bash manual.)
Alternatively, enclose the w
fpo wrote:
> 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.
Thank you for the report. But this is not a bug. You are
misunderst