-----BEGIN PGP SIGNED MESSAGE-----
Matthew Melvin wrote:
>
>You can use $IFS to tell bash to split on just the line feeds instead of the
>spaces....
>[mloe@riverbank (1) bashtest]$ IFS='
>> '
Brilliant, thank you -- this was driving me nuts. I finally figured
out that the reason this works:
LIST=*; for i in $LIST [blah blah]
was that $LIST, in this case, wasn't storing an array at all, but was
actually only storing an asterisk. When $LIST was called, only then
was the shell interpreting the asterisk, and spitting back a file
list, which is what Mark wanted.
Of course, that did nothing to help Mark. I thought IFS might hold
the key, but I didn't know how to set it to look only at EOL. You
rock.
Mark, you can use Matthew's trick in your script, too, I discovered
... precede your code with this:
IFS='
'
...and it does catch the intervening EOL.
- -d
- --
David Talkington
Prairienet / Community Networking Initiative
217-244-1962
[EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
Comment: Made with pgp4pine 1.75-6
iQEVAwUBOiNTBb1ZYOtSwT+tAQGoGQgAw6kdo9wlna+6IrbVw4bUefEmqvDSEA3O
BqLVqHukohKakF2sBYuA0JNAXvN7ZcFGTCkoKePHS7yzaOm2ShwPGQyYOGtjG+/e
Xp/wqY90ihAWoBrEY165Atf58HRXV/32Sptv2x8O7seY0YRlFEkgVVBFXXcmjf01
5JmvOscr+NQ0U7xXQ2mdtOKR3tflEO1DruWXMxgaz8q5jfQa5V7qeKpfyztb/box
jfbhg793I6dKgbhBlPLOkHaEGFZt9dxmr5cHn5Mh+f/a1dlGRqt7USwA+ry4oZEy
ORUhOn919/Ow9Wbscq52WLfcd9o0yTIhLl/9hadwWBq6mOlampZdsA==
=E4oA
-----END PGP SIGNATURE-----
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list