zsh-users
 help / color / mirror / code / Atom feed
From: bkhl@elektrubadur.se (Björn Lindström)
To: zsh-users@sunsite.dk
Subject: Re: Two simple questions
Date: Mon, 13 Sep 2004 20:57:37 +0200	[thread overview]
Message-ID: <s388ybet2se.fsf@numerus.ling.uu.se> (raw)
In-Reply-To: <20040913155253.56857.qmail@web61306.mail.yahoo.com>

Tero Niemela <tero_niemela@yahoo.com> 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.


  reply	other threads:[~2004-09-13 18:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-13 15:52 Tero Niemela
2004-09-13 18:57 ` Björn Lindström [this message]
2004-09-13 21:10 ` DervishD
2004-09-14 16:37   ` Tero Niemela
2004-09-14 17:19     ` DervishD
2004-09-14 18:55       ` Tero Niemela
2004-09-14 19:09         ` DervishD
2004-09-15  5:11           ` Tero Niemela
2004-09-15  8:36             ` DervishD
2004-09-15 10:29               ` Stephane Chazelas

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=s388ybet2se.fsf@numerus.ling.uu.se \
    --to=bkhl@elektrubadur.se \
    --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).