You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tree 2.0 and later will unconditionally ignore all options and write
JSON data on file descriptor 3 when available, which causes problems
for the test harness and other scripts that use FD 3. Work around by
closing descriptor 3 for the 'tree' command.
Copy file name to clipboardExpand all lines: src/password-store.sh
+2-2
Original file line number
Diff line number
Diff line change
@@ -402,7 +402,7 @@ cmd_show() {
402
402
else
403
403
echo"${path%\/}"
404
404
fi
405
-
tree -N -C -l --noreport "$PREFIX/$path"| tail -n +2 | sed -E 's/\.gpg(\x1B\[[0-9]+m)?( ->|$)/\1\2/g'# remove .gpg at end of line, but keep colors
405
+
tree -N -C -l --noreport "$PREFIX/$path"3>&- | tail -n +2 | sed -E 's/\.gpg(\x1B\[[0-9]+m)?( ->|$)/\1\2/g'# remove .gpg at end of line, but keep colors
406
406
elif [[ -z$path ]];then
407
407
die "Error: password store is empty. Try \"pass init\"."
408
408
else
@@ -414,7 +414,7 @@ cmd_find() {
414
414
[[ $#-eq 0 ]] && die "Usage: $PROGRAM$COMMAND pass-names..."
415
415
IFS=","eval'echo "Search Terms: $*"'
416
416
local terms="*$(printf '%s*|*'"$@")"
417
-
tree -N -C -l --noreport -P "${terms%|*}" --prune --matchdirs --ignore-case "$PREFIX"| tail -n +2 | sed -E 's/\.gpg(\x1B\[[0-9]+m)?( ->|$)/\1\2/g'
417
+
tree -N -C -l --noreport -P "${terms%|*}" --prune --matchdirs --ignore-case "$PREFIX"3>&- | tail -n +2 | sed -E 's/\.gpg(\x1B\[[0-9]+m)?( ->|$)/\1\2/g'
0 commit comments