From 4996cec08171e62259d978c385ebfcba44fa2f96 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 28 Nov 2019 18:46:20 +0000 Subject: [PATCH] pash: further simplify copy --- pash | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pash b/pash index aa01f7a..61ff9c9 100755 --- a/pash +++ b/pash @@ -60,12 +60,10 @@ pw_show() { } pw_copy() { - pass=$(pw_show "$1") - # Disable warning against words-splitting as it is safe # and intentional (globbing is disabled). # shellcheck disable=2086 - printf %s "$pass" | ${PASH_CLIP:-xclip -selection clipboard} + pw_show "$1" | ${PASH_CLIP:-xclip -selection clipboard} } pw_list() {