From 224b60074672244511a2a2547b3804322ceb4451 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 28 Nov 2019 18:37:56 +0000 Subject: [PATCH] pash: simplify clipboard --- pash | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/pash b/pash index 183fdeb..913a339 100755 --- a/pash +++ b/pash @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/sh -f # # pash - simple password manager. @@ -68,15 +68,9 @@ pw_copy() { pw_show "$1" copy # Disable warning against words-splitting as it is safe - # and intentional. The '-f' disables globbing while the - # clipboard string is split. + # and intentional (globbing is disabled). # shellcheck disable=2086 - { - set -f - set +f ${PASH_CLIP:-xclip -selection clipboard} - } - - printf %s "$pass" | "$@" + printf %s "$pass" | ${PASH_CLIP:-xclip -selection clipboard} } pw_list() {