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 {
|
||||
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 <suchbegriff>"
|
||||
;;
|
||||
|
@ -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 <Pfad zu Datei> <Betreff>"
|
||||
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 <prozessname>"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue