瀏覽代碼

~/.bin/ff: Escape ampersands to make pango syntax work

I think that's what it was for...
Lu Stadler 7 年之前
父節點
當前提交
439206ba7a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      .bin/ff

+ 1 - 1
.bin/ff

@ -71,7 +71,7 @@ case "$1" in
71 71
		;;
72 72
esac
73 73
74
file="$(find "$base" -type f -name "$pattern" -printf '%P\n' | $choose)"
74
file="$(find "$base" -type f -name "$pattern" -printf '%P\n' | sed 's/&/&/g' | $choose | sed 's/&/\&/g')"
75 75
if [ "$?" -eq "0" ]; then
76 76
	$program "$base/$file"
77 77
fi