Skip to content

Commit 0e7ddcf

Browse files
authored
Merge pull request oh-my-fish#12 from LindyBalboa/master
Replace subprocess with read in fasd_cd
2 parents 67ee290 + a6222d2 commit 0e7ddcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/fasd_cd.fish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ function fasd_cd -d 'Function to execute built-in cd'
33
if test (count $argv) -le 1
44
command fasd "$argv"
55
else
6-
set -l ret (command fasd -e 'printf %s' $argv)
6+
command fasd -e 'printf %s' $argv | read -l ret
77
test -z "$ret";
88
and return
99
test -d "$ret";

0 commit comments

Comments
 (0)