Re: "builtin jobs" does not output to stdout.

2023-02-14 Thread Oğuz İsmail Uysal
On 2/15/23 2:52 AM, Koichi Murase wrote: two or three command substitutions are generally not considered "so many command substitutions". I can't reproduce a great deal of unresponsiveness with five or six either, and my computer is very old too. I think this "delay" you mentioned has more to

Re: "builtin jobs" does not output to stdout.

2023-02-14 Thread Koichi Murase
2023年2月15日(水) 1:20 Chet Ramey : > > On 2/13/23 6:43 AM, Koichi Murase wrote: > > > I guess just the support for ksh's ${ list; } [1] would make > > everything simple and clear. One can simply call ${ jobs; }, ${ trap > > -p; }, etc. without thinking about subshells. > > > > [1]

Re: Regression in pattern substitution with compat42

2023-02-14 Thread Kerin Millar
On Wed, 15 Feb 2023 12:48:10 +1000 Martin D Kealey wrote: > > There are still Linux versions shipping with bash-4.2, which was released > > in 2010. > > > > Is anyone surprised by this, when new versions cannot be trusted? It is, perhaps, telling that two of the most notable rolling Linux

Re: "builtin jobs" does not output to stdout.

2023-02-14 Thread Koichi Murase
2023年2月15日(水) 0:51 Chet Ramey : > On 2/11/23 11:14 AM, Koichi Murase wrote: > > 2023年2月12日(日) 0:42 Robert Elz : > >> Why would you want to ever say "builtin jobs" though? > >> The jobs command has to be buikt in to work. > > > > `jobs' can be overwritten by a shell function. For example, when a >

Re: "builtin jobs" does not output to stdout.

2023-02-14 Thread Koichi Murase
2023年2月14日(火) 4:32 Oğuz : > 13 Şubat 2023 Pazartesi tarihinde Koichi Murase > yazdı: >> One of the >> cases that the fork cost of $() becomes a problem and that other >> languages cannot be really used is the prompt setting `PS1' containing >> command substitutions. > > Bash has many escape

Re: Having an alias and a function with the same name leads to some sort of recursion

2023-02-14 Thread alex xmb ratchev
On Tue, Feb 14, 2023, 8:58 PM Dale R. Worley wrote: > >> Looking at the manual page, it says > >> > >> ALIASES > >>Aliases allow a string to be substituted for a word when it is > used as > >>the first word of a simple command. > > Martin suggested (but IIUC didn't sent to

Re: Regression in pattern substitution with compat42

2023-02-14 Thread Martin D Kealey
On Tue, 14 Feb 2023 at 01:00, Chet Ramey wrote: In this case, the behavior is controlled by an option. You just don't like > the default setting. > We had this exact same discussion back in November. > Too right I don't like it, and the previous discussion was wholly unsatisfactory. I do not

Re: "builtin jobs" does not output to stdout.

2023-02-14 Thread Chet Ramey
On 2/13/23 6:43 AM, Koichi Murase wrote: I guess just the support for ksh's ${ list; } [1] would make everything simple and clear. One can simply call ${ jobs; }, ${ trap -p; }, etc. without thinking about subshells. [1] https://lists.gnu.org/archive/html/help-bash/2020-05/msg00077.html The

Re: "builtin jobs" does not output to stdout.

2023-02-14 Thread Dale R. Worley
Chet Ramey writes: > Yes. As described in later messages, there is a special case that allows > the output of `jobs' to be piped. This came in at some point between > bash-1.05 (March 1990) and bash-1.08 (May 1991). I never extended this > special case to `builtin' or `command'. Is this (are

Re: "builtin jobs" does not output to stdout.

2023-02-14 Thread Chet Ramey
On 2/14/23 2:39 PM, Dale R. Worley wrote: Chet Ramey writes: Yes. As described in later messages, there is a special case that allows the output of `jobs' to be piped. This came in at some point between bash-1.05 (March 1990) and bash-1.08 (May 1991). I never extended this special case to

Re: number of bugs

2023-02-14 Thread Dale R. Worley
There is a bug tracker at https://savannah.gnu.org/support/?group=bash. Dale

Re: Having an alias and a function with the same name leads to some sort of recursion

2023-02-14 Thread Dale R. Worley
>> Looking at the manual page, it says >> >> ALIASES >>Aliases allow a string to be substituted for a word when it is used >> as >>the first word of a simple command. Martin suggested (but IIUC didn't sent to this list): > "Beginning of a simple command" should probably be

Re: "builtin jobs" does not output to stdout.

2023-02-14 Thread Chet Ramey
On 2/11/23 8:54 AM, 岡部将幸 wrote: Bash Version: 5.2 Patch Level: 15 Release Status: release Description: builtin command "jobs" behaves differntly depending on the presence or absence of "builtin". "jobs" outputs to stdout, but "builtin jobs" does not output to stdout. Repeat-By: "sleep 1000 &"

Re: "builtin jobs" does not output to stdout.

2023-02-14 Thread Chet Ramey
On 2/11/23 11:14 AM, Koichi Murase wrote: 2023年2月12日(日) 0:42 Robert Elz : Why would you want to ever say "builtin jobs" though? The jobs command has to be buikt in to work. `jobs' can be overwritten by a shell function. For example, when a user wants to modify the behavior of `jobs' for

Re: "builtin jobs" does not output to stdout.

2023-02-14 Thread Chet Ramey
On 2/11/23 8:15 PM, Robert Elz wrote: Date:Sun, 12 Feb 2023 01:14:12 +0900 From:Koichi Murase Message-ID: | `jobs' can be overwritten by a shell function. For example, when a | user wants to modify the behavior of `jobs' for interactive uses, a |

special built-in [Was: Re: "builtin jobs" does not output to stdout.]

2023-02-14 Thread Robert Elz
Date:Tue, 14 Feb 2023 11:04:48 -0500 From:Chet Ramey Message-ID: <8be447ca-5416-a64f-7e62-1e61102e8...@case.edu> | "Special builtin" is not a particularly useful concept I disagree - most of the time the difference doesn't matter much, but that the special