On Nov 28 2023, Klaus Frank wrote:

> I just noticed that the man pages are missing documentation for the
> "-bash" (or better "-bash_input") parameter.

There is no such thing as a -bash or -bash_input parameter.

> be better readable when being passed as an argument itself to e.g. nspawn
> or docker: `echo test1234 | bash -c "echo $@"`, `bash -c "echo $@" -bash
> "test1234"`, `bash -c "echo $@" -bash_input "test1234"`.

The first argument passed after -c ... is just a placeholder here, it is
used to set the $0 special parameter.

$ bash -c 'echo $0 $2 $1' foo bar mumble
foo mumble bar

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

Reply via email to