bug-bash
[Top][All Lists]
Advanced

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

Re: alias problem -- conflict found


From: L A Walsh
Subject: Re: alias problem -- conflict found
Date: Wed, 10 Jul 2019 06:48:58 -0700
User-agent: Thunderbird


On 2019/07/10 06:22, Chet Ramey wrote:
> On 7/9/19 11:24 PM, L A Walsh wrote:
>
>   
>> ----
>>     Why?  What makes clarity "horrible".  If someone didn't know shell's
>> way of assigning different attributes to 'declare', vs. most languages
>> having
>> different keywords or variable notations would be more familiar.
>>     
>
> Clarity is fine, but it's an individual thing, and requires additional
> context. If it makes things easier for you, great, but one of the things
> you have to sacrifice is the ability for other people to help you figure
> things out.
>
>   
If I submit something for other to look at, I usually have a key
at the top:

shopt -s expand_aliases
alias my=declare int='my -i '  array='my -a ' map='my -A

If they don't understand that, then I'd be skeptical of how much help
I'd be sacrificing.

Regardless, I use such things as a matter of health.  The fewer repetitive
characters I have to type, the better.

I find that using a small subset like the above is within the capabilities
of most shell programmers.



reply via email to

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