From 9d035e20f45b48ea5277efd6e2c07d6abcd51f45 Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Wed, 11 May 2022 11:30:22 +0300 Subject: [PATCH] silent if autocompleting --- bake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bake b/bake index 402f024..841335f 100755 --- a/bake +++ b/bake @@ -1,5 +1,5 @@ #!/bin/bash -## VERSION 22.4.5 +## VERSION 22.5.11 ## BASH-MAKE ========================================================== ## Utility to mimick some of GNU Make behavior, but run in a single ## bash shell. This executable can be used as the Bakefile, too, @@ -42,7 +42,7 @@ complete -F _bake_complete bake # Run me as: source <( $BAKE __autocomplete__ ) ' exit; } -_flines() { cat "$BAKEFILE" | \ +_flines() { cat "$BAKEFILE" 2>/dev/null | \ grep -E '^([^_][a-zA-Z0-9_\.\-]+)\(\) {.*'; } _menu() { _flines | while read line; do if [[ "$line" =~ ([a-zA-Z0-9_\.\-]+)\(\).\{[\ #]*(.*) ]]; then