koldfront

Shell fashion #commandline #fashion

🕙︎ - 2022-10-16

Dear fashionistas, traditionally the &-sign is at the end of the command.

ba&sh

TL;DR: This & terminates the command. Escape it or add space after & to silence.

Nogen burde klistre en streamer med outputtet fra shellcheck på ruden

$ cat <<EOF >ba.sh
#!/bin/sh
ba&sh
EOF
^D
$ shellcheck ba.sh

In ba.sh line 2:
ba&sh
  ^-- SC1132 (warning): This & terminates the command. Escape it or add space after & to silence.

For more information:
  https://www.shellcheck.net/wiki/SC1132 -- This & terminates the command. Es...
$ 

:)

- Klaus Alexander Seistrup 🕗︎ - 2022-12-14

+=

Add comment

To avoid spam many websites make you fill out a CAPTCHA, or log in via an account at a corporation such as Twitter, Facebook, Google or even Microsoft GitHub.

I have chosen to use a more old school method of spam prevention.

To post a comment here, you need to:

¹ Such as Thunderbird, Pan, slrn, tin or Gnus (part of Emacs).

Or, you can fill in this form:

+=