Re: bash script bugs

2009-12-02 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Sergey Ivanov on 12/2/2009 6:12 PM: > Have a script: > #!/usr/bin/bash > f="$(ls $1)" The quotes around $(), while nice for consistency, are not strictly necessary (since $() forms a word without quoting, and variable assignment is not su

Re: Fwd: bash script bugs

2009-12-02 Thread Larry Hall (Cygwin)
On 12/02/2009 08:20 PM, Sergey Ivanov wrote: Have a script: #!/usr/bin/bash f="$(ls $1)" for v_file in "$f"; do echo $v_file done named FileGroupContentsChange.sh. Twos things do not work as they should. By order: 1) Output in command line for nest commands ls /cygdrive/d/install/buf/*.html

bash script bugs

2009-12-02 Thread Sergey Ivanov
Have a script: #!/usr/bin/bash f="$(ls $1)" for v_file in "$f"; do echo $v_file done named FileGroupContentsChange.sh. Twos things do not work as they should. By order: 1) Output in command line for nest commands ls /cygdrive/d/install/buf/*.html dir /cygdrive/d/install/buf/*.html is same: /