tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sh -e changes broke pkgsrc



david%l8s.co.uk@localhost said:
> IIRC the shell specification I read doesn't mention the word
> 'subshell' when refering to (), instead it describes a second
> 'execution environment'

The POSIX wording is
"Execute compound-list in a subshell environment; see Shell Execution 
Environment.".

But anyway, the model that a () group behaves like a simple,
atomar command with its own exit state describes the behaviour
of ~all existing shells pretty well. I don't think it is a good
idea to start to interpret the poor spec by the letter.

best regards
Matthias




-------------------------------------------------------------------
-------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich

Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr. Harald Bolt,
Dr. Sebastian M. Schmidt
-------------------------------------------------------------------
-------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index