On Sunday 16 December 2007 18:54, David C. Rankin wrote:
Guys,
How do I call 'ls' from within a script without it also returning the contents of the present working directory? Here is the line from my script:
ls -al /usr/lib/libGL.so*
Here is the output:
# ./linux/scripts/showLibConfig 250sata.pdf 7857.pdf Bannykh-ArizMedBoard.pdf Bannykh-TennMedBoard.pdf bin broadway.pdf david.asc Desktop Documents linux log Pictures public_html westlaw-renewal_20071129.pdf /usr/lib/libGL.so Config
lrwxrwxrwx 1 root root 10 2007-11-09 16:19 /usr/lib/libGL.so -> libGL.so.1 lrwxrwxrwx 1 root root 12 2007-12-16 16:25 /usr/lib/libGL.so.1 -> libGL.so.1.2 lrwxrwxrwx 1 root root 27 2007-12-16 16:25 /usr/lib/libGL.so.1.2 -> /usr/X11R6/lib/libGL.so.1.2 -rwxr-xr-x 1 root root 391344 2007-09-21 20:34 /usr/lib/libGL.so.1.2.sav
as you can see, it looks like 'ls' is evaluated before 'ls -al /usr/lib/libGL.so*' gets evaluated. How do I fix this?
Does calling /bin/ls instead of just ls help? -- Don -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org