* Old 'cd ......' function broken.
@ 1996-09-30 19:57 peta
0 siblings, 0 replies; only message in thread
From: peta @ 1996-09-30 19:57 UTC (permalink / raw)
To: zsh-workers
I got this from the zsh mailing list a while ago. It used to work but no more
(zsh-3.0.0). It doesnt like ${(r:(${#1}-1)*3-1::../:)b}
cd() {
if [[ $# -eq 1 && $1 = ...* ]] then
local b=''
a=${(r:(${#1}-1)*3-1::../:)b}
builtin cd $a
else
builtin cd $*
fi
}
% cd ...
zsh: ')' expected
Can someone tell me how to fix it?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-10-01 15:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-09-30 19:57 Old 'cd ......' function broken peta
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).