From: Francisco Borges <f.borges@rug.nl>
To: Zsh User <zsh-users@sunsite.dk>
Cc: chesss <testingagain@gmail.com>
Subject: Re: persistant Directory history?
Date: Wed, 8 Nov 2006 11:41:18 +0100 [thread overview]
Message-ID: <20061108104118.GA15543@let.rug.nl> (raw)
In-Reply-To: <20061107235213.GA5829@sc>
: On Tue, Nov 07, 2006 at 11:52PM +0000, Stephane Chazelas wrote:
> On Wed, Nov 08, 2006 at 12:18:12AM +0100, Francisco Borges wrote:
> > 1. it will fail if your directories have spaces in their names. To solve
> > this you have to use "dirs -p" to put one dir per line, and use "f"
> > to read them.
>
> You're only moving the problem to directories with newline in
> there names. See my approach (use ${(qq)dirstack} and ".").
Directories with new lines in their names... I must honestly say that I
had *never* given thought about it.
Anyway, if rc_expand_param is set, the "print -r [...]" line wont
work. So you should consider using
print -r "dirstack=(${(@qq)^^dirstack})"
to explicitly turn it off.
--
Francisco Borges
next prev parent reply other threads:[~2006-11-08 10:41 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-06 16:45 chesss
2006-11-06 17:40 ` Stephane Chazelas
2006-11-06 21:14 ` chesss
2006-11-06 21:50 ` Stephane Chazelas
2006-11-07 0:19 ` William Scott
2006-11-07 8:18 ` Stephane Chazelas
2006-11-07 14:22 ` William Scott
2006-11-07 14:52 ` Francisco Borges
2006-11-07 20:19 ` chesss
2006-11-07 23:18 ` Francisco Borges
2006-11-07 23:52 ` Stephane Chazelas
2006-11-08 10:41 ` Francisco Borges [this message]
2006-11-08 11:19 ` Stephane Chazelas
2006-11-08 11:35 ` chesss
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=20061108104118.GA15543@let.rug.nl \
--to=f.borges@rug.nl \
--cc=testingagain@gmail.com \
--cc=zsh-users@sunsite.dk \
/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).