Subject: Re: a shell idea?
To: VaX#n8 <vax@ccwf.cc.utexas.edu>
From: Hubert Feyrer <Hubert.Feyrer@rz.uni-regensburg.de>
List: current-users
Date: 10/09/1995 12:20:09
> Subject: a shell idea?
> I was wondering about this shell idea I had.
> The basic notion came from the fact that path manipulation is difficult.
> For example, it's difficult (but can be done) to do a command like:
>   ``Add this directory iff it's not already in the path''
> or variations like:
>   ``Add this directory iff it [and every parent directory] are protected
>     from writing by anyone but root or bin''
> This would be especially cool if it was one builtin command, IMHO.
>
> You get the idea.  Is this a useful project?  Mail me any replies,
> I'm a month or two behind on email (ick!)

Under AmigaOS, there's a command called 'path' which will do about what you
say, expanding your path by the given directory(s). Here's the tcsh-alias i'm
using to emulate this behaviour:

alias path              'set path=( `sh -c "cd \!* ; pwd"` $path ) ; rehash'

Of course this doesn't deal with any of the permission-thingies you mention,
but i think such a command makes sense. (Would be even better if all the shells
would provide it :-/)


Just my $0.02 worth,

		Hubert

-- 
=============== Hubert Feyrer ============================================
      Weekdays: Rennerstr. 19, D-93053 Regensburg, Tel. 0941/943-2455
      Weekends: Bachstr. 40,   D-84066 Mallersdorf, Tel. 08772/6084
      Internet: hubert.feyrer@rz.uni-regensburg.de, IRC: hubertf
==========================================================================