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


Groups > gnu.bash.bug > #15107 > unrolled thread

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

Started byL A Walsh <bash@tlinx.org>
First post2019-07-09 20:05 -0700
Last post2019-07-09 20:05 -0700
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

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

FromL A Walsh <bash@tlinx.org>
Date2019-07-09 20:05 -0700
SubjectRe: continued alias problem -- some work, some don't, why?
Message-ID<mailman.766.1562727951.2688.bug-bash@gnu.org>

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

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web