Re: dash/bash: exec behaviour change on Buster

2019-07-18 Thread John Crawley
On 2019-07-18 14:53, Richard Hector wrote: On 18/07/19 1:29 PM, John Crawley wrote: However, try running in a terminal: echo $$ exec #Then, in the new terminal: echo $$ The two PIDs are different! (or were here) Yes. You exec'd a terminal, which then started a shell. You'll probably find (I d

Re: dash/bash: exec behaviour change on Buster

2019-07-17 Thread Richard Hector
On 18/07/19 1:29 PM, John Crawley wrote: > Hi tomas and Thomas, thanks for your input. > I think I have a basic idea of what exec does. > However, try running in a terminal: > echo $$ > exec > #Then, in the new terminal: > echo $$ > > The two PIDs are different! (or were here) Yes. You exec'd a

Re: terminal window returns prompt (was: dash/bash: exec behaviour change on Buster)

2019-07-17 Thread John Crawley
On 2019-07-18 10:29, John Crawley wrote: Hi tomas and Thomas, thanks for your input. I think I have a basic idea of what exec does. However, try running in a terminal: echo $$ exec #Then, in the new terminal: echo $$ The two PIDs are different! (or were here) On 2019-07-17 17:37, Thomas Schmit

Re: dash/bash: exec behaviour change on Buster

2019-07-17 Thread John Crawley
Hi tomas and Thomas, thanks for your input. I think I have a basic idea of what exec does. However, try running in a terminal: echo $$ exec #Then, in the new terminal: echo $$ The two PIDs are different! (or were here) On 2019-07-17 17:37, Thomas Schmitt wrote: John Crawley wrote: In Buster,

Re: dash/bash: exec behaviour change on Buster

2019-07-17 Thread Thomas Schmitt
Hi, John Crawley wrote: > > In Buster, the launching dash shell dies *immediately* and the bash > > prompt returns, even while the new window is still open. tomas wrote: > that most probably is due to a change > in behaviour of "x-terminal-emulator". My suspicion too. If the x-terminal-emulator

Re: dash/bash: exec behaviour change on Buster

2019-07-17 Thread tomas
On Wed, Jul 17, 2019 at 04:49:28PM +0900, John Crawley wrote: > The behaviour of exec seems to have changed from Stretch to Buster - > whether using bash or "sh" (dash here). > > Simple test, in default bash shell on terminal: > > sh > # now with dash > exec x-terminal-emulator > # close new wind

dash/bash: exec behaviour change on Buster

2019-07-17 Thread John Crawley
The behaviour of exec seems to have changed from Stretch to Buster - whether using bash or "sh" (dash here). Simple test, in default bash shell on terminal: sh # now with dash exec x-terminal-emulator # close new window In Stretch, the launching dash shell is held until the new one is close