[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cd *
From: |
Dan Jacobson |
Subject: |
cd * |
Date: |
23 Feb 2001 12:26:23 +0800 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
$ cd /tmp /var
$ echo $?
0
$ pwd
/tmp
$ cd --help
bash: cd: illegal option: --
cd: usage: cd [-PL] [dir]
Observations: 1. bash doesn't feel bad about more than one argument to
cd. 2. --help should be implemented. 3. -P, -L should be explained,
lest one need to wait for the whole bash manual to pop up. Wait,
before any, um, excuses are made, shouldn't any of this behaviour
produce even one warning message about multiple arguments?:
$ cd /lib/modules/2.2.17-21mdk
$ ls
alsa/ cdrom/ ipv4/ modules.dep net/ scsi/
block/ fs/ misc/ modules.pcimap pcmcia/ usb/
$ cd *
$ pwd
/lib/modules/2.2.17-21mdk/alsa
$ cd *
bash: cd: snd-ac97-codec.o: Not a directory
[caught only due to it coming first in expansion]
--
http://www.geocities.com/jidanni Tel886-4-25854780 e-mail:restore .com.