"Alex" <aolson1@lsu.edu> wrote:
> echo HELLO>"HELLO THERE"
> echo HI >"HI THERE"
> for f in H*; do echo $f;done
>
> Resulting Output:
> HELLO THERE
> HI THERE
This is the correct behavior, and it has nothing to do with "for". It
has to do with unquoted variable expansion. If you want to preserve
the spaces, use "$f" instead of $f.
paul