[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: param expansion with single-character special vars in the environmen
From: |
Piotr Grzybowski |
Subject: |
Re: param expansion with single-character special vars in the environment |
Date: |
Thu, 5 May 2016 09:14:04 +0200 |
I can understand this, but perhaps this discussion is too general? in this
particular case there is no point in the assignment. Unless you can convince me
there is?
pg
On 5 May 2016, at 00:31, Dan Douglas wrote:
> ...Also remember it isn't feasible to actually validate a "name" in a
> script because a name can contain a subscript with a command
> substitution that effectively requires parsing the full language.
> (there are some tricks like with `set -nv` and reading its output to
> shanghai the shell parser into doing your bidding, but that's not very
> practical.). Before bash had namerefs, it could ignore aspects of
> "invalid" names, like trailing characters after an array subscript,
> which makes some valid ksh names at least get partially interpreted in
> bash, like `a[foo].bar` or `a[foo][bar]`.
- Re: param expansion with single-character special vars in the environment, (continued)
- Re: param expansion with single-character special vars in the environment, Chet Ramey, 2016/05/02
- Re: param expansion with single-character special vars in the environment, Chet Ramey, 2016/05/02
- Re: param expansion with single-character special vars in the environment, Chet Ramey, 2016/05/04
- Re: param expansion with single-character special vars in the environment, Piotr Grzybowski, 2016/05/04
- Re: param expansion with single-character special vars in the environment, Dan Douglas, 2016/05/04
- Re: param expansion with single-character special vars in the environment, Dan Douglas, 2016/05/04
- Re: param expansion with single-character special vars in the environment,
Piotr Grzybowski <=
- Re: param expansion with single-character special vars in the environment, Chet Ramey, 2016/05/05
Re: param expansion with single-character special vars in the environment, Chet Ramey, 2016/05/02
Re: param expansion with single-character special vars in the environment, Chet Ramey, 2016/05/02
Re: param expansion with single-character special vars in the environment, Chet Ramey, 2016/05/03
Re: param expansion with single-character special vars in the environment, Chet Ramey, 2016/05/06