* Metacharacters in PATH variable?
@ 1997-01-09 18:26 Clint Olsen
1997-01-09 19:04 ` Zefram
0 siblings, 1 reply; 3+ messages in thread
From: Clint Olsen @ 1997-01-09 18:26 UTC (permalink / raw)
To: zsh-workers
Hello:
Sorry if this is a FAQ, but I was wondering if ZSH supports wildcard
characters in the PATH variable. HP-UX uses this new /opt/package/*
braindead methodology for option packages and thus the binaries and manuals
are all scattered under each of the subdirectories. It would be nice if
you could do something like this:
PATH=${PATH}:/opt/{ansic,langtools,audio}/bin
or better yet somehow dynamically find all the bin dirs here and add it to
the path in some sort of compact notation like the above.
Thanks,
-Clint
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Metacharacters in PATH variable?
1997-01-09 18:26 Metacharacters in PATH variable? Clint Olsen
@ 1997-01-09 19:04 ` Zefram
1997-01-09 21:05 ` Zoltan Hidvegi
0 siblings, 1 reply; 3+ messages in thread
From: Zefram @ 1997-01-09 19:04 UTC (permalink / raw)
To: Clint Olsen; +Cc: zsh-workers
Clint Olsen wrote:
>PATH=${PATH}:/opt/{ansic,langtools,audio}/bin
path=( $path /opt/{ansic,langtools,audio}/bin )
>or better yet somehow dynamically find all the bin dirs here and add it to
>the path in some sort of compact notation like the above.
path=( $path /opt/*/bin )
-zefram
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Metacharacters in PATH variable?
1997-01-09 19:04 ` Zefram
@ 1997-01-09 21:05 ` Zoltan Hidvegi
0 siblings, 0 replies; 3+ messages in thread
From: Zoltan Hidvegi @ 1997-01-09 21:05 UTC (permalink / raw)
To: Zefram; +Cc: olsenc, zsh-workers
Zefram wrote:
> >or better yet somehow dynamically find all the bin dirs here and add it to
> >the path in some sort of compact notation like the above.
>
> path=( $path /opt/*/bin )
Or if the bin dir is deeper, you can try
path=( $path /opt/**/bin(-/) )
Zoltan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1997-01-09 21:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-01-09 18:26 Metacharacters in PATH variable? Clint Olsen
1997-01-09 19:04 ` Zefram
1997-01-09 21:05 ` Zoltan Hidvegi
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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).