diff --git a/qcd_function b/qcd_function index 90bb830..09e476c 100644 --- a/qcd_function +++ b/qcd_function @@ -1,4 +1,7 @@ function cd_history () { + local old + local p + local b if [ -z "$1" ] then \cd "$HOME" return @@ -15,7 +18,8 @@ alias cd=cd_history function qcd() { local OPTIND local OPTARG - + local opt + while getopts aLl:hm opt do case "$opt" in a) @@ -98,6 +102,9 @@ function whenfilechanges() { [ -e "$1" ] || { echo $1 not found return } + local fname + local otime + local ntime fname=$1 shift 1