diff options
Diffstat (limited to 'bash/bashrc.d/ud.bash')
-rw-r--r-- | bash/bashrc.d/ud.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/ud.bash b/bash/bashrc.d/ud.bash index 2bed481b..a1792968 100644 --- a/bash/bashrc.d/ud.bash +++ b/bash/bashrc.d/ud.bash @@ -33,7 +33,7 @@ ud() { # Check and save optional second argument, target directory; default to # $PWD (typical usage case) local dirname - dirname=${2:-$PWD} + dirname=${2:-"$PWD"} if [[ ! -e $dirname ]] ; then printf 'bash: %s: Target directory %s does not exist\n' "$FUNCNAME" "$2" >&2 return 1 |