Closed hanoii closed 6 months ago
I keep getting sh: 1: Syntax error: redirection unexpected on the preview window this on a docker container when using _fzf_git_branches.
sh: 1: Syntax error: redirection unexpected
_fzf_git_branches
I tracked this down to to
$(sed s/^..// <<< {} | cut -d" " -f1)
Changing it with
$(echo {} | sed s/^..// | cut -d" " -f1) works
$(echo {} | sed s/^..// | cut -d" " -f1)
Any idea why?
I realized that although I was on bash, SHELL was not exported so it was picking up sh for the preview command. Odd, anyway, now fixed with making sure export SHELL happens.
sh
export SHELL
I keep getting
sh: 1: Syntax error: redirection unexpected
on the preview window this on a docker container when using_fzf_git_branches
.I tracked this down to to
$(sed s/^..// <<< {} | cut -d" " -f1)
Changing it with
$(echo {} | sed s/^..// | cut -d" " -f1)
worksAny idea why?