From: vlefevre@ens-lyon.fr (Vincent Lefevre)
To: zsh-users@math.gatech.edu
Subject: Re: Simple Question.....I think?
Date: Sun, 20 Oct 1996 13:28:14 +0200 [thread overview]
Message-ID: <199610201128.NAA15352@boukha.ens-lyon.fr> (raw)
In-Reply-To: <22235465702125@asan.com>; from DPD on Oct 19, 1996 18:20:24 -0500
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
------------------------------------------------------------------------------
prev parent reply other threads:[~1996-10-20 11:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-10-19 23:20 DPD
1996-10-20 11:01 ` Zefram
1996-10-20 11:28 ` Vincent Lefevre [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199610201128.NAA15352@boukha.ens-lyon.fr \
--to=vlefevre@ens-lyon.fr \
--cc=zsh-users@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).