Wenn ich es mit --posix starte funktioniert es übrigens auch:
| bash --posix ./willkommen.sh Pinug
Hallo Pinug
|
Wieso die dash da ein Semikolon will ist mir schleierhaft.
Aus der Manpage der dash:
Lists -- Generally Speaking
A list is a sequence of zero or more commands separated by newlines, semicolons, or ampersands, and optionally terminated by one of
these three characters. The commands in a list are executed in the order they are written. If command is followed by an amper‐
sand, the shell starts the command and immediately proceed onto the next command; otherwise it waits for the command to terminate
before proceeding to the next one.
...
| if list
then list
[ elif list
then list ] ...
[ else list ]
fi
|
Die Notwendigkeit eines Semikolons kann ich hier nicht ableiten. Schätze, es ist ein Bug.