bug-bash
[Top][All Lists]
Advanced

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

Re: Arithmetic expansion with increments and output redirection


From: Chet Ramey
Subject: Re: Arithmetic expansion with increments and output redirection
Date: Wed, 24 Apr 2019 09:12:44 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

On 4/24/19 8:47 AM, Ian Neal wrote:

> At what point is a subshell being invoked? There's no pipeline, command
> substitution, coprocess, background process, or explicit () subshell here,
> which are the only cases a subshell should be created. Otherwise, the
> entire operation should be evaluated by the main shell. Arithmetic
> expansion is not in that list.

Why would you think that /bin/true would be "evaluated by the main shell?"
It's not a shell compound command or a builtin, and non-builtin commands
are run in child processes.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]