From 2d91768d88b14568139b51da4ce0c85cbe837df5 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Thu, 21 Nov 2019 00:31:39 +0530 Subject: Fix some cat abuses in code, plugins --- misc/clipboard-copier/copier | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'misc/clipboard-copier') diff --git a/misc/clipboard-copier/copier b/misc/clipboard-copier/copier index 92f7dce..6ac3ba6 100755 --- a/misc/clipboard-copier/copier +++ b/misc/clipboard-copier/copier @@ -8,16 +8,16 @@ SELECTION=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection # Linux -cat "$SELECTION" | xargs -0 | xsel -bi +xargs -0 < "$SELECTION" | xsel -bi # macOS -# cat "$SELECTION" | xargs -0 | pbcopy +# xargs -0 < "$SELECTION" | pbcopy # Termux -# cat "$SELECTION" | xargs -0 | termux-clipboard-set +# xargs -0 < "$SELECTION" | termux-clipboard-set # Cygwin -# cat "$SELECTION" | xargs -0 | clip +# xargs -0 < "$SELECTION" | clip # Wayland -# cat "$SELECTION" | xargs -0 | wl-copy +# xargs -0 < "$SELECTION" | wl-copy -- cgit v1.2.3-70-g09d2