Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Two simple questions
- X-seq: zsh-users 7984
- From: bkhl@xxxxxxxxxxxxxxx (Björn Lindström)
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Two simple questions
- Date: Mon, 13 Sep 2004 20:57:37 +0200
- Cancel-lock: sha1:n6eVal8IeVy2kNXxFzRTQz6cNbU=
- Mail-copies-to: never
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20040913155253.56857.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
Tero Niemela <tero_niemela@xxxxxxxxx> writes:
> I'm seeing dirs like /bin /bin/ and even /bin// in my PATH. What would
> be the best way to clean up the trailing slashes? "typeset -U path"
> won't clean up paths if they have different number of trailing slashes
> (I mean all those mentioned paths are left but other instances of,
> e.g., /bin are of course cleaned).
AFAIK, zsh never adds stuff to the path by itself with a trailing path -
so just stopping to do that yourself in your own config files, should
do the trick.
If this doesn't help you, you'll just have to write your own function
that normalises the paths - stripping the trailing slashes should be
easy enough - typeset wont do that for you.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author