Skip to content

Commit dc1f264

Browse files
Fixed issues with white spaces in directory names.
1 parent 80a65db commit dc1f264

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fcd.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ fi
2121

2222
# Created on succesful call to fcd.py
2323
if [ -e ~/.fcd_dir ]; then
24-
cd `cat ~/.fcd_dir`
24+
fcd_dir=$(<~/.fcd_dir)
25+
cd "$fcd_dir"
2526
fi
2627

2728
# Created if previous call to fcd.py had an attached extra command line

0 commit comments

Comments
 (0)