Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15107

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

From L A Walsh <bash@tlinx.org>
Newsgroups gnu.bash.bug
Subject Re: continued alias problem -- some work, some don't, why?
Date 2019-07-09 20:05 -0700
Message-ID <mailman.766.1562727951.2688.bug-bash@gnu.org> (permalink)
References <5D23C417.5060108@tlinx.org> <868f9e01-eaea-86e2-6d42-b07f5d10539a@case.edu> <5D255603.2080500@tlinx.org>

Show all headers | View raw



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...

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: continued alias problem -- some work, some don't, why? L A Walsh <bash@tlinx.org> - 2019-07-09 20:05 -0700

csiph-web