Assigning fault nonviolently: echo -e '#!/bin/bash\n\ngit blame $@' > ~/.local/bin/git-praise && chmod +x ~/.local/bin/git-praise

Follow

@eal

You need to enclose `$@` into double quotes.

$ cat bad.sh
#!/bin/sh
./script.sh $@

$ cat good.sh
#!/bin/sh
./script.sh "$@"

$ cat script.sh
#!/bin/sh
for x in "$@"; do echo "\"$x\""; done

$ ./bad.sh "a b c"
"a"
"b"
"c"

$./good.sh "a b c"
"a b c"

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.