diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-26 11:44:45 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-26 11:44:45 +1200 |
commit | 09060039b6416a75f0084392dab1f0259e8174f2 (patch) | |
tree | b11e569a32de7ea2c8f5207db0432db404ff1ba5 /bash/bashrc.d/path.bash | |
parent | Correct examples a bit (diff) | |
download | dotfiles-09060039b6416a75f0084392dab1f0259e8174f2.tar.gz dotfiles-09060039b6416a75f0084392dab1f0259e8174f2.zip |
Remove unneeded 'in "$@"' for argument iteration
for defaults to iterating over the arguments
Diffstat (limited to 'bash/bashrc.d/path.bash')
-rw-r--r-- | bash/bashrc.d/path.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/path.bash b/bash/bashrc.d/path.bash index 4ffdf0bd..80e45cc9 100644 --- a/bash/bashrc.d/path.bash +++ b/bash/bashrc.d/path.bash @@ -136,7 +136,7 @@ path() { set|s) local -a newpatharr local part - for part in "$@" ; do + for part ; do newpatharr=("${newpatharr[@]}" "${part%/}") done PATH=$(IFS=: ; printf '%s' "${newpatharr[*]}") |