From 09060039b6416a75f0084392dab1f0259e8174f2 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 26 Jun 2015 11:44:45 +1200 Subject: Remove unneeded 'in "$@"' for argument iteration for defaults to iterating over the arguments --- bash/bashrc.d/path.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash/bashrc.d/path.bash') 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[*]}") -- cgit v1.2.3