Skip to content

Commit

Permalink
Fix the parameter expansion at the matching line of $CDD_FILE.
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshikaw committed Dec 22, 2012
1 parent 9c26326 commit 38f14a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdd
Expand Up @@ -115,7 +115,7 @@ _cdd_cd() {

local match="$(grep "^$key:" "$CDD_FILE")"
if [ -n "$match" ]; then
local dir="${match#*:}"
local dir="${match##*:}"
echo "cd $dir"
cd "$(echo "$dir" | sed "s;^~;$HOME;")"

Expand Down

0 comments on commit 38f14a7

Please sign in to comment.