Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 9d4e4c5e96
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (12 sloc) 0.278 kB
# From http://stackoverflow.com/questions/370047/#370255
function path_remove() {
IFS=:
# convert it to an array
t=($PATH)
unset IFS
# perform any array operations to remove elements from the array
t=(${t[@]%%$1})
IFS=:
# output the new array
echo "${t[*]}"
}
Jump to Line
Something went wrong with that request. Please try again.