Path: csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: Eli Schwartz Newsgroups: gnu.bash.bug Subject: Re: alias problem -- conflict found Date: Tue, 9 Jul 2019 23:39:46 -0400 Lines: 116 Approved: bug-bash@gnu.org Message-ID: References: <5D23C417.5060108@tlinx.org> <20190709132112.GW2450@eeg.ccf.org> <5D255A6E.4060600@tlinx.org> <7530eecd-c1f3-cba4-4058-30bae97c19c9@archlinux.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="d6hRfY2pc9aGKnA3QRxP5RrJv7UrE8oQ1" X-Trace: usenet.stanford.edu 1562730009 20951 209.51.188.17 (10 Jul 2019 03:40:09 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=orion; t=1562729989; bh=5ThkjMl5aMOiakpP37pdJgoH0NcLZuJ+gKvSVWOk8Ds=; h=Subject:To:References:From:Date:In-Reply-To; b=VwnC7rj4gNdrs1oXsjznlrdRUyn4gIfoPgg6FvTVNVvG142OfjIQfC5HROdrDaoia zr2PIy9n1YZRqfpbMOq/kRrx1xdjSATIzRNVR1P8h3P1VbbcZTGJaRajDUsnVemDxG ZS5qDxOmUdjObUdspgnoBW8tA9qjcaofBdXy+jx7jG+NupgktWsxCOYkL4TxbooyWH r8KW3ED0qjdMK3ZMDVqCY2M6zzoc6DiChn2+sDIVCXaYjtfP6s9X5bWNX8svEchxnt XyN7brcxEqcOR4r+wVPPDC7trOXCzGXs4bm8tvRx1c/WudLwgizRnlt9U/l36WY44i O9eCMHjIipmMXlgd/+NgkL3myY+FGA27qeq7i2JUgZz9e/w8dcBi+RjW1+8rOTUja7 ktLNJmzpg85vVKrDHnxH/08mW6oYqbwhJrvBbdFFG4zHG9cY3MuvkSMajaijmAtA9Q 6LlEv8ZRgp1NtxcfJ/PVm0cN8VpsJtTv4FtPZtA8j7qo4IKsI9kXGdFRF4WdYRtqol 7HZEqA5TadnJj0M2+sTqySPUzYMhYGFNa0Rv9V0JOFm0D4Fa4sKw5to+ckUSefyQ70 SeDnmxSCYe3uKySqbpbwbJ61+Ff4mC7BVOye/Z2XbkjXriddsKrfBN783io/i0USWJ XLMPqWzdlGiSb7Y4RCyv5iR0= Openpgp: preference=signencrypt X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 In-Reply-To: <5D255A6E.4060600@tlinx.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a01:4f8:160:6087::1 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: <7530eecd-c1f3-cba4-4058-30bae97c19c9@archlinux.org> X-Mailman-Original-References: <5D23C417.5060108@tlinx.org> <20190709132112.GW2450@eeg.ccf.org> <5D255A6E.4060600@tlinx.org> Xref: csiph.com gnu.bash.bug:15109 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --d6hRfY2pc9aGKnA3QRxP5RrJv7UrE8oQ1 Content-Type: multipart/mixed; boundary="aliQkHNn5hjfVPRyk2k8HzDMyC9z5Tt6z"; protected-headers="v1" From: Eli Schwartz To: bug-bash@gnu.org Message-ID: <7530eecd-c1f3-cba4-4058-30bae97c19c9@archlinux.org> Subject: Re: alias problem -- conflict found References: <5D23C417.5060108@tlinx.org> <20190709132112.GW2450@eeg.ccf.org> <5D255A6E.4060600@tlinx.org> In-Reply-To: <5D255A6E.4060600@tlinx.org> --aliQkHNn5hjfVPRyk2k8HzDMyC9z5Tt6z Content-Type: text/plain; charset=utf-8 Content-Language: en-US-large Content-Transfer-Encoding: quoted-printable On 7/9/19 11:24 PM, L A Walsh wrote: > On 2019/07/09 06:21, Greg Wooledge wrote: >> On Mon, Jul 08, 2019 at 03:30:47PM -0700, L A Walsh wrote: >> =20 >>> alias my=3D'declare ' Export=3D'\-x ' Map=3D'-A ' Int=3D'-i ' >>> =20 >> Because the dead horse is still equine-shaped, I will beat upon it som= e >> more: this is utterly horrible coding and you should stop doing it. >> =20 > ---- > 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. I guess the most obvious reason why your clarity is horrible is due to the fact that it apparently wasn't a very clear type of clarity. You confused yourself pretty badly by turning bash into typedef hell, and as a result, neither you nor anyone else had any remote clue what your code was doing. > I rarely use the forms above, with the exception of 'my', since > it's alot shorter to type 'my' than its expanded form. The most common= > ones for me are: >=20 > my, int, array and map. =20 >=20 > All of them are shorter than their original forms and are easier > to type and read. So what is so horrible about them that it > should require longer repetitive strings that are not words? They're easier to type, yes, but they are definitely nowhere near easier to read. Now in order to know what the code is doing, you not only need to know bash, you also need to know your own homebrew typedef specification crudely bolted on. > I made a mistake in developing an older program and didn't use > -u on the front of it. It did just like you said -- it allowed a progr= am > with an undefined variable in it to run in cases where it would have gi= ven > the right answer in many or most cases. However, due to a lack of test= ing, > the cases that failed due to that undefined variable were not detected > by me > until recently.=20 >=20 > The '-u' didn't hide something unimportant -- it hid a symptom of a= n > error that remained hidden for years.=20 Okay, there's a wild and context-free assertion. I'll just ignore that, then. --=20 Eli Schwartz --aliQkHNn5hjfVPRyk2k8HzDMyC9z5Tt6z-- --d6hRfY2pc9aGKnA3QRxP5RrJv7UrE8oQ1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEvSewel70XCra9w4EhIGKaBmvSpsFAl0lXgIACgkQhIGKaBmv SptEIg/9G8koaI5KVmVb+eRRVtPICfRyQ1xwF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