Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: L A Walsh Newsgroups: gnu.bash.bug Subject: Re: continued alias problem -- some work, some don't, why? Date: Tue, 09 Jul 2019 20:05:39 -0700 Lines: 22 Approved: bug-bash@gnu.org Message-ID: References: <5D23C417.5060108@tlinx.org> <868f9e01-eaea-86e2-6d42-b07f5d10539a@case.edu> <5D255603.2080500@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 1562727952 20198 209.51.188.17 (10 Jul 2019 03:05:52 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: <868f9e01-eaea-86e2-6d42-b07f5d10539a@case.edu> 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: <5D255603.2080500@tlinx.org> X-Mailman-Original-References: <5D23C417.5060108@tlinx.org> <868f9e01-eaea-86e2-6d42-b07f5d10539a@case.edu> Xref: csiph.com gnu.bash.bug:15107 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...