Feature request - make type show that a builtin is a loadable

2022-10-23 Thread Geir Hauge
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

[PATCH] fix problem with uconvert

2022-10-23 Thread izabera
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 +-

wait inside subshell waits for sibling

2022-10-23 Thread Oğuz İsmail Uysal
To reproduce: $ echo $BASH_VERSION 5.2.2(3)-release $ ( : & wait ) > >(cat) *hangs* It should return immediately, but hangs instead.

Re: wait inside subshell waits for sibling

2022-10-23 Thread Emanuele Torre
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