aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc.d/pd.bash3
1 files changed, 2 insertions, 1 deletions
diff --git a/bash/bashrc.d/pd.bash b/bash/bashrc.d/pd.bash
index 8003c966..db0ba799 100644
--- a/bash/bashrc.d/pd.bash
+++ b/bash/bashrc.d/pd.bash
@@ -4,7 +4,7 @@
# containing directory. In the absence of an argument, this just shifts up a
# directory, i.e. `cd ..`
pd() {
- local arg target
+ local arg
local -a opts
for arg ; do
case $arg in
@@ -21,6 +21,7 @@ pd() {
;;
esac
done
+ local target
case $# in
0)
target=..