From c274475635d410c0e9f812e71d20183cb923cd6b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 18 Feb 2024 13:22:42 +0100 Subject: misc updates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- cat-nonbackups | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cat-nonbackups') diff --git a/cat-nonbackups b/cat-nonbackups index 387cf7a..2031eab 100755 --- a/cat-nonbackups +++ b/cat-nonbackups @@ -8,6 +8,9 @@ good_filename () { test -n "$(printf '%s\n' "$1" | grep -v '^\.#' || :)" || return 1 test -n "$(printf '%s\n' "$1" | grep -v '^#' || :)" || return 1 } +if test "$1" = "--"; then + shift 1 +fi for file; do if good_filename "$file" >/dev/null 2>/dev/null; then cat -- "$file" -- cgit v1.2.3-70-g09d2