[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Arithmetic expansion with increments and output redirection
From: |
Ian Neal |
Subject: |
Re: Arithmetic expansion with increments and output redirection |
Date: |
Wed, 24 Apr 2019 08:20:26 -0600 |
>
> "Utilities other than the special built-ins (see Special Built-In
> Utilities) shall be invoked in a separate environment that consists of the
> following...[includes redirections specified to the utility]...The
> environment of the shell process shall not be changed by the utility"
>
>
> http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_12
>
The utility here in question is the external command (/bin/true in my
example), which doesn't do the expansion itself. In this case, it's not the
utility affecting the environment, it's the expansion performed by the
(sub)shell itself before the exec*() that has an effect on the environment.
They're different from word expansions.
>
The bash manual calls it a word, which is one of the sources of my
confusion.
"The general format for redirecting output is:
[n]>word"
https://linux.die.net/man/1/bash
- Re: Arithmetic expansion with increments and output redirection, (continued)
- Re: Arithmetic expansion with increments and output redirection, Ian Neal, 2019/04/24
- Re: Arithmetic expansion with increments and output redirection, Greg Wooledge, 2019/04/24
- Re: Arithmetic expansion with increments and output redirection, Andreas Schwab, 2019/04/24
- Re: Arithmetic expansion with increments and output redirection, Chet Ramey, 2019/04/24
- Re: Arithmetic expansion with increments and output redirection, Chet Ramey, 2019/04/24
- Re: Arithmetic expansion with increments and output redirection, Ian Neal, 2019/04/24
- Re: Arithmetic expansion with increments and output redirection, Chet Ramey, 2019/04/24
- Re: Arithmetic expansion with increments and output redirection, Ilkka Virta, 2019/04/24
- Re: Arithmetic expansion with increments and output redirection, Chet Ramey, 2019/04/24
- Re: Arithmetic expansion with increments and output redirection, Greg Wooledge, 2019/04/24
- Re: Arithmetic expansion with increments and output redirection,
Ian Neal <=
- Re: Arithmetic expansion with increments and output redirection, Chet Ramey, 2019/04/24
- Re: Arithmetic expansion with increments and output redirection, Chet Ramey, 2019/04/24