rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: Alan Watson <alan@oldp.astro.wisc.edu>
To: "David J. Fiander" <davidf@golem.waterloo.on.ca>
Cc: rc@hawkwind.utcs.toronto.edu
Subject: Re: rc 1.5
Date: Sat, 17 Apr 1993 12:47:18 -0400	[thread overview]
Message-ID: <9304171647.AA28250@oldp.astro.wisc.edu> (raw)

[Re flags:]
> It's also there so scripts can change flags.  I would like to
> be able to write scripts that turn on the -x flag internally,
> when their debug flag is specified on the command line.

I would also find this useful, especially for debugging functions.

> Actually, /bin/sh, /bin/ksh, and the POSIX.2 shell all check
> the current directory for a file named "test", and _then_
> search the path for a file named "test" which is also
> executable.

None of the Bourne derivatives (sh, sh5, ksh, and bash) behave that way
on this machine (Decstation running Ultrix 4.3); the only ones which
get it `right' are the csh derivatives (csh and tcsh).

> The reason I would like "." to search the path is that then I
> can create the directory /usr/bin/rclib, and store
> scripts in there.  Then my scripts can just say
> 
>	 . rclib/read
> 
> to load the read function that I have stored there.

Try:
	rclib = /usr/bin/rclib
	. $rclib/read


             reply	other threads:[~1993-04-17 16:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-04-17 16:47 Alan Watson [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-04-17 16:56 Paul Haahr
1993-04-16 22:21 Byron Rakitzis
1993-04-17 11:51 ` David J. Fiander
1993-04-19 11:59   ` Chet Ramey
1993-04-16 19:14 Memory leaking Byron Rakitzis
1993-04-16 22:04 ` rc 1.5 David J. Fiander

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=9304171647.AA28250@oldp.astro.wisc.edu \
    --to=alan@oldp.astro.wisc.edu \
    --cc=davidf@golem.waterloo.on.ca \
    --cc=rc@hawkwind.utcs.toronto.edu \
    /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).