Reputation
Next privilege 125 Rep.
Vote down
Badges
2
Impact
0 people reached

  • 0 posts edited
  • 0 helpful flags
  • 4 votes cast
Sep
24
awarded  Autobiographer
Jan
9
awarded  Supporter
Dec
26
comment Prune duplicate entries from PATH variable
Just a typo: the ! is missing in the if. Also, it's surprisingly (to me) easy to make this into a function which loops over space-separated arguments, so you can just say: add_to_PATH ~/perl5/bin ~/.bin unix.stackexchange.com/a/4973/28760 (I guess the case statement used there is more portable, but your if is clearer to me). EDIT weird coincidence that that question also adds perl5!