From 364702e8306669b37def5fb7f2b493237d52313c Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 9 Nov 2021 11:26:47 +0100 Subject: [PATCH] bash: $1 escaped --- .bash_functions | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.bash_functions b/.bash_functions index 53114a5..d81e5c7 100644 --- a/.bash_functions +++ b/.bash_functions @@ -9,7 +9,7 @@ ssh() { #() ist die kurzform von function function sgc { case "$1" in --help) - echo "Suche in der kompletten git-history nach '$1'" + echo "Suche in der kompletten git-history nach "\$1"" echo "sgc = search git commit" echo "sgc " ;; @@ -20,10 +20,9 @@ function sgc { git grep "$1" $(git rev-list --all) esac } - function m2m { if [[ "$1" == "--help" ]]; then - echo "Sende Datei '$2' per Mail; Betreff = '$1'" + echo "Sende Datei "\$2" per Mail; Betreff = "\$1"" echo "m2m = mail2me" echo "m2m " else @@ -40,7 +39,7 @@ function m2m { } function psk { if [[ "$1" == "--help" ]]; then - echo "Beende Prozess '$1'" + echo "Beende Prozess "\$1"" echo "psk = ps kill" echo "psk " else