Date:Mon, 24 Oct 2022 04:25:44 +0200
From:Emanuele Torre
Message-ID:
| bash performs an optimisation that runs redirections applied to simple
| commands that run external programs, or subshell compound commands after
| the fork(). (to avoid having to restore f
24 Ekim 2022 Pazartesi tarihinde Emanuele Torre
yazdı:
>
> To inhibit this optimisation, you can wrap your subshell compound
> command (or simple command) in a group command, and apply the
> redirections to it instead of the subshell command:
>
> { (: & wait) ;} > >(cat)
>
> Or, in your specif
I don't think the process running `cat' is a sibling of the subshell.
bash performs an optimisation that runs redirections applied to simple
commands that run external programs, or subshell compound commands after
the fork(). (to avoid having to restore file descriptors after running
the command.)
I think it's a good idea for the type builtin to distinguish between
static and loadable builtins, and for debugging scripts that use
loadable builtins, it would be useful to be able to see which file got
loaded. For example in cases where BASH_LOADABLES_PATH was
unintentionally unset or set to a w
To reproduce:
$ echo $BASH_VERSION
5.2.2(3)-release
$ ( : & wait ) > >(cat)
*hangs*
It should return immediately, but hangs instead.
if the argument is in the (-1, 0) range, the integer part is zero and
multiplying it by -1 has no effect, so the caller can't tell that the
argument was negative
---
builtins/read.def | 10 +-
examples/loadables/sleep.c | 4 ++--
externs.h | 2 +-
lib/sh/uconver