commit 24db74fd7b16d098f2631a421c558181b78caa9b parent ffd0468f67ec8d62f1672552498f7379932b80db Author: NRK <nrk@disroot.org> Date: Tue, 1 Feb 2022 18:00:20 +0600 fzcd: avoid using non-portable xargs flag Diffstat:
| M | plugins/fzcd | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/plugins/fzcd b/plugins/fzcd @@ -55,15 +55,15 @@ if [ -n "$LIST" ]; then fi done < "$LIST" - sel=$(xargs -d '\n' -a "$tmpfile" -I{} find {} -type f -printf "%H//%P\n" | sed '/.*\/\/\(\..*\|.*\/\..*\)/d; s:/\+:/:g' | fzf --delimiter / --tiebreak=begin --info=hidden) + sel=$(xargs -d '\n' < "$tmpfile" -I{} find {} -type f -printf "%H//%P\n" | sed '/.*\/\/\(\..*\|.*\/\..*\)/d; s:/\+:/:g' | fzf --delimiter / --tiebreak=begin --info=hidden) # Alternative for 'fd' - # sel=$(xargs -d '\n' -a "$tmpfile" fd . | fzf --delimiter / --tiebreak=begin --info=hidden) + # sel=$(xargs -d '\n' < "$tmpfile" fd . | fzf --delimiter / --tiebreak=begin --info=hidden) rm "$tmpfile" else printf "find missing" read -r _ - exit 1 + exit 1 fi fi