Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: L A Walsh Newsgroups: gnu.bash.bug Subject: Re: alias problem -- conflict found Date: Wed, 10 Jul 2019 06:48:58 -0700 Lines: 34 Approved: bug-bash@gnu.org Message-ID: References: <5D23C417.5060108@tlinx.org> <20190709132112.GW2450@eeg.ccf.org> <5D255A6E.4060600@tlinx.org> <5D25ECCA.3020400@tlinx.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: usenet.stanford.edu 1562766596 9045 209.51.188.17 (10 Jul 2019 13:49:56 GMT) X-Complaints-To: action@cs.stanford.edu Cc: bug-bash To: chet.ramey@case.edu Envelope-to: bug-bash@gnu.org User-Agent: Thunderbird In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 173.164.175.65 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <5D25ECCA.3020400@tlinx.org> X-Mailman-Original-References: <5D23C417.5060108@tlinx.org> <20190709132112.GW2450@eeg.ccf.org> <5D255A6E.4060600@tlinx.org> Xref: csiph.com gnu.bash.bug:15117 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.