for name in git-clang-format-3.9 git-clang-format-3.8 git-clang-format ; do
where=$(which $name)
if [ x != "x$where" ] ; then
- GIT_SUBCOMMAND=`echo $name|sed 's/git-//'`
+ GIT_SUBCOMMAND=$(echo $name|sed 's/git-//')
break
fi
done
local result=""
# Need to restore the working directory after work.
- pushd `pwd` > /dev/null
+ pushd $(pwd) > /dev/null
cd "$(dirname "$target_file")"
- target_file=`basename $target_file`
+ target_file=$(basename $target_file)
# Iterate down a (possible) chain of symlinks
while [ -L "$target_file" ]
# Compute the canonicalized name by finding the physical path
# for the directory we're in and appending the target file.
- physical_directory=`pwd -P`
+ physical_directory=$(pwd -P)
result="$physical_directory"/"$target_file"
# restore the working directory after work.