bash: $1 escaped
This commit is contained in:
parent
e7996e5dae
commit
364702e830
1 changed files with 3 additions and 4 deletions
|
@ -9,7 +9,7 @@ ssh() { #() ist die kurzform von function
|
||||||
function sgc {
|
function sgc {
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--help)
|
--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 = search git commit"
|
||||||
echo "sgc <suchbegriff>"
|
echo "sgc <suchbegriff>"
|
||||||
;;
|
;;
|
||||||
|
@ -20,10 +20,9 @@ function sgc {
|
||||||
git grep "$1" $(git rev-list --all)
|
git grep "$1" $(git rev-list --all)
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
function m2m {
|
function m2m {
|
||||||
if [[ "$1" == "--help" ]]; then
|
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 = mail2me"
|
||||||
echo "m2m <Pfad zu Datei> <Betreff>"
|
echo "m2m <Pfad zu Datei> <Betreff>"
|
||||||
else
|
else
|
||||||
|
@ -40,7 +39,7 @@ function m2m {
|
||||||
}
|
}
|
||||||
function psk {
|
function psk {
|
||||||
if [[ "$1" == "--help" ]]; then
|
if [[ "$1" == "--help" ]]; then
|
||||||
echo "Beende Prozess '$1'"
|
echo "Beende Prozess "\$1""
|
||||||
echo "psk = ps kill"
|
echo "psk = ps kill"
|
||||||
echo "psk <prozessname>"
|
echo "psk <prozessname>"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue