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

Reply via email to