Re: Are there any plans for more readable, modern syntaxes for If statements?

2020-03-30 Thread George
On Sun, 2020-03-29 at 01:55 -0700, John W wrote: > On 3/26/20, George < > tetsu...@scope-eye.net > > wrote: > > On Thu, 2020-03-26 at 19:05 +0200, Vaidas BoQsc wrote: > > I think shells would really benefit from things like > > more powerful data structures, better facilities for passing complex da

Re: trap on EXIT doesn't get triggered in functions run in background

2020-03-30 Thread Chet Ramey
On 3/30/20 2:24 PM, Tau wrote: > Bash Version: 5.0 > Patch Level: 7 > Release Status: release > > Description: > When you execute a function in the background, and in that > function you set a trap on EXIT, it doesn't get triggered when > the function returns. This behavio

Re: exit trap defined in function body isn't triggered

2020-03-30 Thread Chet Ramey
On 3/30/20 2:45 PM, Oğuz wrote: > Consider this: > > bash < foo() { > trap 'echo exit' EXIT > } > foo & > EOF > > After trap is set, the subshell exits and `echo exit` should be run, > but it won't. If you set a RETURN trap instead it works though. This > is reproducible on bash4 and bash5 Tha

trap on EXIT doesn't get triggered in functions run in background

2020-03-30 Thread Tau
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/li

exit trap defined in function body isn't triggered

2020-03-30 Thread Oğuz
Consider this: bash <

Re: Create an alias on the fly?

2020-03-30 Thread Greg Wooledge
On Mon, Mar 30, 2020 at 04:24:07AM -0400, Jeffrey Walton wrote: > I'm testing some software from Master. My testing machines sometimes > lack the distro tools like makeinfo. It results in things like this: > > ./bootstrap: 255: makeinfo: not found > ./bootstrap: Error: 'makeinfo' not found

Re: Create an alias on the fly?

2020-03-30 Thread Jeffrey Walton
On Mon, Mar 30, 2020 at 4:38 AM Andreas Kusalananda Kähäri wrote: > > On Mon, Mar 30, 2020 at 04:24:07AM -0400, Jeffrey Walton wrote: > > Hi Everyone, > > > > I'm testing some software from Master. My testing machines sometimes > > lack the distro tools like makeinfo. It results in things like thi

Re: Create an alias on the fly?

2020-03-30 Thread Andreas Kusalananda Kähäri
On Mon, Mar 30, 2020 at 04:24:07AM -0400, Jeffrey Walton wrote: > Hi Everyone, > > I'm testing some software from Master. My testing machines sometimes > lack the distro tools like makeinfo. It results in things like this: > > ./bootstrap: 255: makeinfo: not found > ./bootstrap: Error: 'm

Create an alias on the fly?

2020-03-30 Thread Jeffrey Walton
Hi Everyone, I'm testing some software from Master. My testing machines sometimes lack the distro tools like makeinfo. It results in things like this: ./bootstrap: 255: makeinfo: not found ./bootstrap: Error: 'makeinfo' not found I tried the MAKEINFO=true tricks but they did not work. H