From: Bart Schaefer <schaefer@brasslantern.com>
To: "zsh users" <zsh-users@sunsite.dk>
Subject: Re: Why isn't $PATH expanded internally?
Date: Sun, 16 Sep 2007 15:28:04 -0700 [thread overview]
Message-ID: <070916152804.ZM21562@torch.brasslantern.com> (raw)
In-Reply-To: <2d460de70709161341n13f08926mc244ac08e392a721@mail.gmail.com>
On Sep 16, 10:41pm, Richard Hartmann wrote:
}
} I am wondering why putting
}
} ~/foo
} $HOME/foo # as in the string $HOME
}
} into $PATH will not work as expected.
$PATH is just a symbolic name for a string in the process environment.
This environment is passed along verbatim to every program forked by
the shell; the PATH value is not merely used internally for searches
by the shell itself.
Incidentally ~/foo and $HOME/foo *are* normally expanded "on load" when
included in a PATH=.... assigment. If it's not working for you, it is
most likely because of quoting that you've applied to the value.
prev parent reply other threads:[~2007-09-17 0:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-16 20:41 Richard Hartmann
2007-09-16 22:28 ` Bart Schaefer [this message]
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=070916152804.ZM21562@torch.brasslantern.com \
--to=schaefer@brasslantern.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).