bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Command saved incorrectly in history.


From: Martin D Kealey
Subject: Re: Command saved incorrectly in history.
Date: Mon, 31 Aug 2026 11:44:41 +1200

Similarly, newline+«)» gets recorded as «; )», though - somewhat
surprisingly - that's actually accepted as input.

(The Shell seems a bit haphazard in where an empty command is acceptable.
Why after «;» or «&» or «PATTERN)» but not after «{» or «(» or «|»? Yes
POSIX is, erm… idiosyncratic, but why enforce such limitations when not
doing so would simplify the grammar? What have I missed?)

-Martin

Description:
> The command string is not stored correctly in the history when multiple
> commands are chained together with '|&' on multiple lines.
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]