bug-bash
[Top][All Lists]
Advanced

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

Re: continued alias problem -- some work, some don't, why?


From: L A Walsh
Subject: Re: continued alias problem -- some work, some don't, why?
Date: Tue, 09 Jul 2019 20:05:39 -0700
User-agent: Thunderbird


On 2019/07/09 06:40, Chet Ramey wrote:
>
>> With these aliases:
>> alias my='declare ' Export='-x ' Map='-A ' Int='-i '
>>
>> my Export Map Int ffffe=([one]=1)
>> -bash: declare: `-x': not a valid identifier
>> -bash: declare: `-A': not a valid identifier
>> -bash: declare: `-i': not a valid identifier
>>     
> I can't reproduce this.
>   
My problem: '-x' was already an alias for 'chmod -- -x ', so changing
Export's
alias to '\-x ', "solves" this syntax problem.  I've never needed -r or -w,
but have desired, at times, the positive forms of all 3 (+r +w +x)

Yeah, I really do have typing injuries, so abbreviations for oft used
identical actions are useful.  Thanks for verifying...



reply via email to

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