From d267901ad817e1fe9f0fa4a1dbdbbe447d0f2ef0 Mon Sep 17 00:00:00 2001 From: Adrien Abraham Date: Wed, 8 Nov 2023 14:27:59 +0100 Subject: [PATCH] bang: fix issue with missing first word w/ default --- bang.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bang.py b/bang.py index 19f8aa3..3945c9e 100755 --- a/bang.py +++ b/bang.py @@ -157,6 +157,8 @@ def main(): handle = default_handle if len(parts) == 1: queries.append(parts[0]) + else: + queries.append(output) if len(parts) == 2: queries.append(parts[1])