From 1a2f3ac2537a869b7564931724fa655e0dfe01c4 Mon Sep 17 00:00:00 2001 From: Alexander Gehrke Date: Tue, 31 Aug 2021 15:27:16 +0200 Subject: [PATCH] xc: if given command is invalid, but an existing file, read from it --- misc/xc | 62 +++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 38 insertions(+), 24 deletions(-) diff --git a/misc/xc b/misc/xc index f72cbb8..da4b7ac 100755 --- a/misc/xc +++ b/misc/xc @@ -3,6 +3,30 @@ # install this program with the name xc and symlink it as xs. # xc will use the clipboard selection, while xs while use the primary selection +read -r -d '' HELPTEXT <