9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: quanstro@quanstro.net (erik quanstrom)
Subject: [9fans] how can I set path
Date: Fri, 25 Mar 2011 07:57:36 -0400	[thread overview]
Message-ID: <8a19cc063c1520054aa76c7160fd027a@brasstown.quanstro.net> (raw)
In-Reply-To: <tencent_259FC61038853D224F9F641D@qq.com>

> I'm new to plan9. i don't know how to set path on plan9, can you help me? thank you

for the record, you can set the path.  e.g.
	path=($path /some/other/directory)
the default path is (. /bin).

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.

- erik



  parent reply	other threads:[~2011-03-25 11:57 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 [this message]
2011-03-25 12:14   ` Lucio De Re
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=8a19cc063c1520054aa76c7160fd027a@brasstown.quanstro.net \
    --to=quanstro@quanstro.net \
    /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).