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

Bret Hughes wrote:

>> cdl () { cd $1;ls -l --color=yes | more; } 
>> should do it.
>so what is going to happen when the cd fails do to an invalid path for
>the directory?  I have not been playing with it but I hate to see logic
>dependent on the proper execution of a previous command that does no
>error checking.

You can cause the whole blob to succeed or fail as a unit if you replace 
the intervening ; with &&.  Depending on your needs, that might work out 
better.

- -d

- -- 
David Talkington

PGP key: http://www.prairienet.org/~dtalk/0xCA4C11AD.pgp

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
Comment: Made with pgp4pine 1.75-6

iQA/AwUBPKduv79BpdPKTBGtEQJv1QCg7luu0JsC8wVd9djwIGBeW3qih/IAoKDd
jhqFrYHxhLTOHpEhD3UrrYji
=utvz
-----END PGP SIGNATURE-----




_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to