[TUHS] Systematic approach to command-line interfaces
Chet Ramey
chet.ramey at case.edu
Mon Aug 2 09:26:08 AEST 2021
On 8/1/21 3:23 PM, Richard Salz wrote:
>
> >> This lets you execute commands like:
> >>
> >> auth/as
> ...
>
> POSIX forbids this behavior, FWIW, so you'll probably have a hard time
> finding a shell -- at least one with POSIX aspirations -- that
> implements it.
>
>
> So you write a function or alias that prepends the full path to "as" and
> exec's the command. So you have to type "auth as ..." but BFD.
Sure. If you invest effort in building a solution, you can do just about
anything. If you want, you can write a function that generates the set of
aliases you use to do this.
The thing is, you're going to have to build it -- you can't expect to find
a shell that does a $PATH search for a pathname containing a slash.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet at case.edu http://tiswww.cwru.edu/~chet/
More information about the TUHS
mailing list