Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #211444

dash/bash: exec behaviour change on Buster

From John Crawley <john@bunsenlabs.org>
Newsgroups linux.debian.user
Subject dash/bash: exec behaviour change on Buster
Date 2019-07-17 09:50 +0200
Message-ID <ykMRk-2r2-3@gated-at.bofh.it> (permalink)
Organization BunsenLabs

Show all headers | View raw


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  
closed, then exits and returns to bash.
In Buster, the launching dash shell dies *immediately* and the bash  
prompt returns, even while the new window is still open.

If the test is done without switching to sh, the change between stretch  
and buster is similar, but the launching terminal is destroyed, the  
difference being in whether that's immediate or after closing the new one.

Was this a bug in Stretch? I haven't been able to find any references to it.

As it happens, I was using that behaviour in a script, but I'll hold  
that question for a bit...

-- 
John

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

dash/bash: exec behaviour change on Buster John Crawley <john@bunsenlabs.org> - 2019-07-17 09:50 +0200
  Re: dash/bash: exec behaviour change on Buster <tomas@tuxteam.de> - 2019-07-17 10:20 +0200
    Re: dash/bash: exec behaviour change on Buster "Thomas Schmitt" <scdbackup@gmx.net> - 2019-07-17 10:40 +0200
      Re: dash/bash: exec behaviour change on Buster John Crawley <john@bunsenlabs.org> - 2019-07-18 03:40 +0200
        Re: terminal window returns prompt (was: dash/bash: exec behaviour  change on Buster) John Crawley <john@bunsenlabs.org> - 2019-07-18 05:40 +0200
        Re: dash/bash: exec behaviour change on Buster Richard Hector <richard@walnut.gen.nz> - 2019-07-18 08:00 +0200
          Re: dash/bash: exec behaviour change on Buster John Crawley <john@bunsenlabs.org> - 2019-07-18 09:50 +0200

csiph-web