9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: rogpeppe@gmail.com (roger peppe)
Subject: [9fans] how can I set path
Date: Fri, 25 Mar 2011 13:53:17 +0000	[thread overview]
Message-ID: <AANLkTi=9pYd8CrfpLTaNfavQMv+aDb+VPazqMw7nw3bj@mail.gmail.com> (raw)
In-Reply-To: <a91021506be0258951a45ce3fb8fd58f@brasstown.quanstro.net>

On 25 March 2011 12:27, erik quanstrom <quanstro at quanstro.net> wrote:
>> 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.
>
> try this:
>
> ? ? ? ?cd $home/tmp
> ? ? ? ?cat > diff
> ? ? ? ?#!/bin/rc
> ? ? ? ?echo hi!
> ? ? ? ?<EOT>
> ? ? ? ?chmod a+x diff
> ? ? ? ?history -D $somefile
> ? ? ? ?diff $somefile `{yesterday $somefile}
>

i always set $path to (/bin .)
it can be much faster, apart from anything else.



  reply	other threads:[~2011-03-25 13:53 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
2011-03-25 12:27     ` erik quanstrom
2011-03-25 13:53       ` roger peppe [this message]
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='AANLkTi=9pYd8CrfpLTaNfavQMv+aDb+VPazqMw7nw3bj@mail.gmail.com' \
    --to=rogpeppe@gmail.com \
    /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).