You need to use backticks (`) around ls, not single-quotes ('), to
accomplish what you probably want. The script as written below works correctly.

At 04:10 PM 2/27/02 +0100, sylvain pelletier wrote:
>Hi,
>
>I would make a little script in sh on my lrp ( dachtein version)
>
>and i can't do this :
>
>for file in 'ls' ; do
>    echo "$file"
>done
>
>the echo response is: ls
>
>what's wrong, the problem comes from lrp???



--
------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
Palo Alto, CA                                    [EMAIL PROTECTED]        
----------------------------------------------------------------


_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user

Reply via email to