[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: param expansion with single-character special vars in the environmen
From: |
Eduardo A . Bustamante López |
Subject: |
Re: param expansion with single-character special vars in the environment |
Date: |
Wed, 27 Apr 2016 13:43:53 -0500 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
The attached patch seems to take care of at least these two cases:
| dualbus@hp ...src/gnu/bash % ./bash --norc --noprofile -c 'r=@; declare -n r'
| ./bash: line 0: declare: @: invalid variable name for name reference
|
| dualbus@hp ...src/gnu/bash % ./bash --norc --noprofile -c 'declare -n r; r=@'
| ./bash: `@': not a valid identifier
|
| dualbus@hp ...src/gnu/bash % ./bash --norc --noprofile -c 'declare -n r;
r=$(echo @)'
| ./bash: `@': not a valid identifier
But I think Chet already considered this, given that the check in declare.def
was '#if 0'ed out.
--
Eduardo Bustamante
https://dualbus.me/
patch
Description: Text document
- param expansion with single-character special vars in the environment, Grisha Levit, 2016/04/25
- Re: param expansion with single-character special vars in the environment, Grisha Levit, 2016/04/25
- Re: param expansion with single-character special vars in the environment, Piotr Grzybowski, 2016/04/27
- Re: param expansion with single-character special vars in the environment, Grisha Levit, 2016/04/27
- Re: param expansion with single-character special vars in the environment, Piotr Grzybowski, 2016/04/27
- Re: param expansion with single-character special vars in the environment, Eduardo A . Bustamante López, 2016/04/27
- Re: param expansion with single-character special vars in the environment,
Eduardo A . Bustamante López <=
- Re: param expansion with single-character special vars in the environment, Piotr Grzybowski, 2016/04/27
- Re: param expansion with single-character special vars in the environment, Eduardo A . Bustamante López, 2016/04/27
- Re: param expansion with single-character special vars in the environment, Eduardo A . Bustamante López, 2016/04/27
- Re: param expansion with single-character special vars in the environment, Grisha Levit, 2016/04/27
- Re: param expansion with single-character special vars in the environment, Piotr Grzybowski, 2016/04/27
- Re: param expansion with single-character special vars in the environment, Piotr Grzybowski, 2016/04/27
- Re: param expansion with single-character special vars in the environment, Grisha Levit, 2016/04/27
- Re: param expansion with single-character special vars in the environment, Piotr Grzybowski, 2016/04/27
Re: param expansion with single-character special vars in the environment, Piotr Grzybowski, 2016/04/27