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
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.