* Simple Question.....I think?
@ 1996-10-19 23:20 DPD
1996-10-20 11:01 ` Zefram
1996-10-20 11:28 ` Vincent Lefevre
0 siblings, 2 replies; 3+ messages in thread
From: DPD @ 1996-10-19 23:20 UTC (permalink / raw)
To: zsh-users
Hello all!
(If you have any flames to send, please send them to my personal
mailbox ----> /dev/null. Thanks!)
Now, I am unsuccessfull in trying to 'cd' to a particular
directory...Yes, I am running the zsh shell. Version 3.0.0.
I am not sure if this is a shell specific problem...if its not then
just let me know what this problem may be related to...
Allow me to show you the instances I have come accross thus far:
dpdhost:ttyp2:domenick:~%
dpdhost:ttyp2:domenick:~% echo $SHELL
/bin/zsh
dpdhost:ttyp2:domenick:~%
dpdhost:ttyp2:domenick:~% ls -dl down*
drwx------ 2 domenick sysop 1024 Sep 7 19:00 download/
dpdhost:ttyp2:domenick:~%
dpdhost:ttyp2:domenick:~% cd down*
dpdhost:ttyp2:domenick:~/download%
^^^^^^^^^
as you can see no
problem here.
dpdhost:ttyp2:domenick:~/download% cd
dpdhost:ttyp2:domenick:~%
dpdhost:ttyp2:domenick:~% ls -dl /usr1/src/zsh*
drwxrwxr-x 9 root sysop 1024 Oct 15 16:21 /usr1/src/zsh-3.0.0/
-rw------- 1 root root 2637 Oct 15 15:48 /usr1/src/zsh-3.0.0.log
dpdhost:ttyp2:domenick:~%
dpdhost:ttyp2:domenick:~% cd /usr1/src/zsh*
cd: string not in pwd: /usr1/src/zsh-3.0.0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
What does this mean??? Should I be able to successfully cd to
'...zsh-3.0.0' the way other shells, like the bash shell at least,
could?? If so, what option/variable/flag/etc needs to be set??
dpdhost:ttyp2:domenick:~%
Thanks for your help!
Dom
PS: Yes I am actively searching through the zsh documentation for
answers!!!!!!!!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Simple Question.....I think?
1996-10-19 23:20 Simple Question.....I think? DPD
@ 1996-10-20 11:01 ` Zefram
1996-10-20 11:28 ` Vincent Lefevre
1 sibling, 0 replies; 3+ messages in thread
From: Zefram @ 1996-10-20 11:01 UTC (permalink / raw)
To: DPD; +Cc: zsh-users
>dpdhost:ttyp2:domenick:~% ls -dl down*
>drwx------ 2 domenick sysop 1024 Sep 7 19:00 download/
>dpdhost:ttyp2:domenick:~%
>dpdhost:ttyp2:domenick:~% cd down*
>dpdhost:ttyp2:domenick:~/download%
> ^^^^^^^^^
> as you can see no
> problem here.
Yes. `down*' expands to one pathanme, `download', so the command is
effectively `cd download', which works normally.
>dpdhost:ttyp2:domenick:~% ls -dl /usr1/src/zsh*
>drwxrwxr-x 9 root sysop 1024 Oct 15 16:21 /usr1/src/zsh-3.0.0/
>-rw------- 1 root root 2637 Oct 15 15:48 /usr1/src/zsh-3.0.0.log
>dpdhost:ttyp2:domenick:~%
>dpdhost:ttyp2:domenick:~% cd /usr1/src/zsh*
>cd: string not in pwd: /usr1/src/zsh-3.0.0
>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Here `/usr1/src/zsh*' expands to two pathnames, `/usr1/src/zsh-3.0.0'
and `/usr1/src/zsh-3.0.0.log', making the command `cd
/usr1/src/zsh-3.0.0 /usr1/src/zsh-3.0.0.log'. cd with two arguments
has a completely different meaning from cd with one argument -- see
zshbuiltins(1).
-zefram
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Simple Question.....I think?
1996-10-19 23:20 Simple Question.....I think? DPD
1996-10-20 11:01 ` Zefram
@ 1996-10-20 11:28 ` Vincent Lefevre
1 sibling, 0 replies; 3+ messages in thread
From: Vincent Lefevre @ 1996-10-20 11:28 UTC (permalink / raw)
To: zsh-users
DPD writes:
> dpdhost:ttyp2:domenick:~% ls -dl /usr1/src/zsh*
/usr1/src/zsh* is replaced with /usr1/src/zsh-3.0.0/ /usr1/src/zsh-3.0.0.log
So this is equivalent to:
ls -dl /usr1/src/zsh-3.0.0/ /usr1/src/zsh-3.0.0.log
> drwxrwxr-x 9 root sysop 1024 Oct 15 16:21 /usr1/src/zsh-3.0.0/
> -rw------- 1 root root 2637 Oct 15 15:48 /usr1/src/zsh-3.0.0.log
> dpdhost:ttyp2:domenick:~%
> dpdhost:ttyp2:domenick:~% cd /usr1/src/zsh*
Equivalent to: cd /usr1/src/zsh-3.0.0/ /usr1/src/zsh-3.0.0.log
(The fact that the command is cd has no special effect.)
> cd: string not in pwd: /usr1/src/zsh-3.0.0
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This is normal. Look at the man: this is the second form of cd.
> What does this mean??? Should I be able to successfully cd to
> '...zsh-3.0.0' the way other shells, like the bash shell at least,
> could?? If so, what option/variable/flag/etc needs to be set??
You should type: cd /usr1/src/zsh*(/)
or better: cd /usr1/src/zsh*(-/)
if you want the symbolic links to be taken into account.
I don't think there is an option so that cd does a cd on the first
argument that is a directory. But you can write a zsh function cd
that behaves like this.
> PS: Yes I am actively searching through the zsh documentation for
> answers!!!!!!!!
In the man, look at:
_ the man of cd, in zshbuiltins;
_ filename generation (globbing), in zshexpn.
HTH,
--
Vincent Lefevre, vlefevre@ens-lyon.fr | Acorn RiscPC600, 20+1MB RAM, Eagle M2
http://www.ens-lyon.fr/~vlefevre | Apple CD-300, SyQuest 270MB
PhD in Computer Science, 1st year | Atari Falcon030, 4MB RAM
------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1996-10-20 11:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-10-19 23:20 Simple Question.....I think? DPD
1996-10-20 11:01 ` Zefram
1996-10-20 11:28 ` Vincent Lefevre
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).