Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH?] Nofork and removing newlines
On Sat, Mar 9, 2024 at 12:44 PM Oliver Kiddle <opk@xxxxxxx> wrote:
>
> Bart Schaefer wrote:
> > ... the |ident| has to be assignable for the expansion to mean
> > anything, so why allow them in that position?
>
> You may not be able to assign to it directly but I can think of uses
> for $? (and perhaps also $!) if supported there.
$? is also $status and ${|status|...} is fine.
% print ${|status| return 9}
9
Also:
% x=${ return 9 }
% echo $?
9
(Just like with $(exit 9).)
Pondering $! ... hm.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author