Mercurial > dotfiles
comparison .shell.d/00.path_manipulation.sh @ 149:7dfb7799567f
path_manipulation: Fix accidental recursion.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Mon, 28 Sep 2009 15:20:42 -0500 |
parents | de6d0a9a7e3f |
children | c85072e620a8 |
comparison
equal
deleted
inserted
replaced
148:c1519e52dcd0 | 149:7dfb7799567f |
---|---|
3 function insert_path_element() { | 3 function insert_path_element() { |
4 insert_element_into_var $1 PATH | 4 insert_element_into_var $1 PATH |
5 } | 5 } |
6 | 6 |
7 function remove_path_element() { | 7 function remove_path_element() { |
8 remove_path_element $1 PATH | 8 remove_element_from_var $1 PATH |
9 } | 9 } |
10 | 10 |
11 function insert_element_into_var () { | 11 function insert_element_into_var () { |
12 eval varcontents=\$"$2" | 12 eval varcontents=\$"$2" |
13 eval varname="$2" | 13 eval varname="$2" |