* PATCH: ~-num expansion.
@ 1999-06-15 13:14 Tanaka Akira
0 siblings, 0 replies; only message in thread
From: Tanaka Akira @ 1999-06-15 13:14 UTC (permalink / raw)
To: zsh-workers
Z(2):akr@is27e1u11% zsh-3.1.5-pws-22 -f
is27e1u11% dirs -v
0 ~/zsh/zsh-3.1.5-pws-22
is27e1u11% echo ~-0
zsh: not enough directory stack entries.
is27e1u11%
zsh should expand ~-0.
--- Src/subst.c- Tue Jun 15 01:14:31 1999
+++ Src/subst.c Tue Jun 15 21:58:24 1999
@@ -1944,6 +1944,8 @@
else
for (end=NULL, n=firstnode(dirstack); n && val; val--, n=nextnode(n));
if (n == end) {
+ if (backwards && !val)
+ return pwd;
if (isset(NOMATCH))
zerr("not enough directory stack entries.", NULL, 0);
return NULL;
--
Tanaka Akira
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-06-15 13:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-15 13:14 PATCH: ~-num expansion Tanaka Akira
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).