From: lucio@proxima.alt.za (Lucio De Re)
Subject: [9fans] how can I set path
Date: Fri, 25 Mar 2011 14:14:38 +0200 [thread overview]
Message-ID: <20110325121438.GA2542@fangle.proxima.alt.za> (raw)
In-Reply-To: <8a19cc063c1520054aa76c7160fd027a@brasstown.quanstro.net>
On Fri, Mar 25, 2011 at 07:57:36AM -0400, erik quanstrom wrote:
>
> for the record, you can set the path. e.g.
> path=($path /some/other/directory)
> the default path is (. /bin).
>
Probably because one doesn't want to bind "." to /bin for every
"." visited, not because it's a good idea.
> jaketodd and john correctly point out that this
> isn't the way it's done; bind(1) is the preferred method.
> rc (the shell) is the only program that respects $path.
> in fact that would be a sneeky way to run programs
> from the shell that can't be exec(2)'d.
>
I read that as allowing the shell to run programs that the kernel would
reject. I eventually understood it to mean that you can hide programs
where only the shell will find them. Is the current directory one of
those places, I wonder? I'm reluctant to figure it out for myself -
long day.
++L
next prev parent reply other threads:[~2011-03-25 12:14 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-25 4:18 流明
2011-03-25 4:23 ` Jacob Todd
2011-03-25 11:57 ` erik quanstrom
2011-03-25 12:14 ` Lucio De Re [this message]
2011-03-25 12:27 ` erik quanstrom
2011-03-25 13:53 ` roger peppe
2011-03-25 13:58 ` roger peppe
2011-03-25 15:42 ` Zhai
2011-03-25 4:33 流明
2011-03-25 4:36 ` John Floren
2011-03-25 4:40 Jacob Todd
2011-03-25 4:42 流明
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=20110325121438.GA2542@fangle.proxima.alt.za \
--to=lucio@proxima.alt.za \
/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.
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).