Re: bash
From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 03/30/05
- Next message: Barry Margolin: "Re: bash and PID"
- Previous message: Barry Margolin: "Re: Please help me to understand this (bash)"
- In reply to: Reiner Funck: "bash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 30 Mar 2005 08:30:26 -0500
In article <3avdg2F6eldjnU1@news.dfncis.de>,
Reiner Funck <reiner.funck@dwd.de> wrote:
> What happens with:
>
> echo $$; ( a.out; )
>
> 8093
> 27780 8093
>
> one subshell "fails", why?
>
> I have not found anything in man page.
>
> Many thanks for help, Reiner
The last command in a shell process can be executed using exec() rather
than fork() followed by exec(), since the exit status of a shell is
simply the exit status of its last command.
-- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***
- Next message: Barry Margolin: "Re: bash and PID"
- Previous message: Barry Margolin: "Re: Please help me to understand this (bash)"
- In reply to: Reiner Funck: "bash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|