-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


The Sunday 2007-12-16 at 19:54 -0600, David C. Rankin wrote:

        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?


I can not reproduce your problem here. I wrote a script:


[EMAIL PROTECTED]:~> cat bin/pp

ls -al /usr/lib/libGL.so*
[EMAIL PROTECTED]:~> bin/pp
lrwxrwxrwx 1 root root     10 2007-11-03 03:01 /usr/lib/libGL.so -> libGL.so.1
lrwxrwxrwx 1 root root     12 2007-11-03 03:01 /usr/lib/libGL.so.1 -> 
libGL.so.1.2
- -rwxr-xr-x 1 root root 567628 2007-02-18 02:59 /usr/lib/libGL.so.1.0.9631
- -rwxr-xr-x 1 root root 391344 2007-09-22 03:34 /usr/lib/libGL.so.1.2


So, you either have something else in your script that is interfering, or there is a strangely named file(s) in that path.

Or an alias, as K.R. Foley sugests.

- -- Cheers,
       Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)

iD8DBQFHZd8/tTMYHG2NR9URAhUoAJ9/xlYdNr5tij89bCVYQTaKqhFFcgCdF3/c
AB5KJ9H376jcJTiV8yN3XYM=
=rYMp
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to