From 3adf7fb39acea09e21ee5dc25e5ed817bcd972c2 Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Thu, 19 May 2022 19:33:18 +0300 Subject: [PATCH] set+x replacement --- bake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bake b/bake index 841335f..a976785 100755 --- a/bake +++ b/bake @@ -1,5 +1,5 @@ #!/bin/bash -## VERSION 22.5.11 +## VERSION 22.5.19 ## 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, @@ -113,6 +113,8 @@ _update_self() { "https://raw.githubusercontent.com/moonq/bake/main/bake" chmod +x "$0" } +@() { echo +"$@" >&2; "$@"; } # Print command before running it + for (( i=1; i<=$#; i++ )); do if [[ $i -eq 1 ]]; then if [[ "${!i}" = "__list__" ]]; then _flines | sed 's/().*//'; exit; fi