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


Groups > linux.debian.user > #211502

Re: dash/bash: exec behaviour change on Buster

From John Crawley <john@bunsenlabs.org>
Newsgroups linux.debian.user
Subject Re: dash/bash: exec behaviour change on Buster
Date 2019-07-18 09:50 +0200
Message-ID <yl9kR-8gj-5@gated-at.bofh.it> (permalink)
References <ykNkl-2QL-1@gated-at.bofh.it> <ykNDH-2Xd-1@gated-at.bofh.it> <yl3yO-4ku-7@gated-at.bofh.it> <yl7Cq-7bx-3@gated-at.bofh.it>
Organization BunsenLabs

Show all headers | View raw


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 <someterminal>
>> #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 did) that the first pid you got is now the pid of the terminal:

Ah, that makes sense. Thanks.
-- 
John

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