[CentOS] bash variable expansion moment

Philip Gwyn liste at artware.qc.ca
Mon Nov 23 16:56:13 UTC 2009


On 16-Nov-2009 ken wrote:
> On 11/15/2009 06:32 PM Stephen Harris wrote:
>> On Sun, Nov 15, 2009 at 06:21:40PM -0500, ken wrote:
>> 
>>>> ....
>> 
>>     echo This is line "${BASH_LINENO[0]}" $@
>> 
>>   ,,,,
> 
> That's all I needed.  Thanks.

You might also want to check out bash's built in `caller` command.

-Philip




More information about the CentOS mailing list