> Here is the relevant documentation from bash (1):
>Word Splitting
Thanks. (It turns out that the relevant information is in the "Quoting"
section of that document.)
The solution was to set the IFS variable to a literal value ^M with the
$'' operator. The proper form of the given example
On Sun, Oct 19, 2003 at 07:15:11PM -0400, Darik Horn wrote:
> Can anybody explain this shell behavior? -- It doesn't seem consistent
> with the documentation about how whitespace is interpreted as an
> internal field separator.
Here is the relevant documentation from bash (1):
Word Splitting
Can anybody explain this shell behavior? -- It doesn't seem consistent
with the documentation about how whitespace is interpreted as an
internal field separator.
# IFS="\n"
# FOO="alpha\nbravo\ncharlie"
# for i in $FOO; do echo "%${i}%"; done
%alpha%
%%
%bravo%
%%
%charlie%
When ash or bash doe
3 matches
Mail list logo