bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wildcard expansion in $PATH


From: Chet Ramey
Subject: Re: Wildcard expansion in $PATH
Date: Mon, 14 Feb 2005 11:40:48 -0500

> It would be nice if one day BASH could recognize wildcards in the PATH 
> statement.  E.g.,
> 
> export PATH=/sbin:/usr/sbin:/usr/pkg/*/bin

export PATH=/sbin:/usr/sbin$(printf ":%s" /usr/pkg/*/bin)

That does require that you periodically re-execute this command, and it
might not be as dynamic as you desire.  On the other hand, it works today.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live...Laugh...Love
Chet Ramey, ITS, CWRU    chet@case.edu    http://tiswww.tis.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]