Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Perl Path Editor for Unix

by 5p1d3r (Hermit)
on Sep 14, 2005 at 13:09 UTC ( #491847=note: print w/ replies, xml ) Need Help??


in reply to Re: Perl Path Editor for Unix
in thread Perl Path Editor for Unix

That's a nice variation. I think the two could be combined with arguments used by default but falling back to interactive behavior in their absence.

The regex path matching on a remove or remove all seems a little off:

> export PATHTEST=/foo:/foobar:/foo/bar
> setpath.pl --/foo
> more .setpath.out
export PATHTEST=:bar:/bar/

>
This works if you append a ':' to the path you're removing (which I guess the script could do for you). It might be nice to add some sort of wild carding to the removals so you could remove every directory rooted at /foo.

I initially wrote mine to do removes but for my usage I prefer to temporarily toggle directories on/off. The tools developers I work with chose executable names that match those of a number of gnu tools I make use of so on occassion I need to temporaily remove one or other directory from my PATH.


Comment on Re^2: Perl Path Editor for Unix

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://491847]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (15)
As of 2014-07-30 18:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (239 votes), past polls