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


Groups > linux.debian.user > #211447

Re: dash/bash: exec behaviour change on Buster

From "Thomas Schmitt" <scdbackup@gmx.net>
Newsgroups linux.debian.user
Subject Re: dash/bash: exec behaviour change on Buster
Date 2019-07-17 10:40 +0200
Message-ID <ykNDH-2Xd-1@gated-at.bofh.it> (permalink)
References <ykNkl-2QL-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 puts itself into background,
then the starting terminal ends immediately.

test_script:

  #!/bin/sh
  xterm &

Executed by

  chmod u+x ./test_script
  exec ./test_script

kills the terminal.

(Combining "exec" and "&" in the interactive shell does not kill the
 shell and the terminal:
  exec xterm &
)


What happens if you run

  x-terminal-emulator

without "exec". Does the shell prompt come back immediately ?


Have a nice day :)

Thomas

Back to linux.debian.user | Previous | Next — Previous in thread | 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