Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15109
| Path | csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Eli Schwartz <eschwartz@archlinux.org> |
| 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 | <mailman.773.1562730008.2688.bug-bash@gnu.org> (permalink) |
| 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 <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <https://lists.gnu.org/archive/html/bug-bash> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=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 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
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: >> >>> alias my='declare ' Export='\-x ' Map='-A ' Int='-i ' >>> >> Because the dead horse is still equine-shaped, I will beat upon it some >> more: this is utterly horrible coding and you should stop doing it. >> > ---- > 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: > > my, int, array and map. > > 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 program > with an undefined variable in it to run in cases where it would have given > the right answer in many or most cases. However, due to a lack of testing, > the cases that failed due to that undefined variable were not detected > by me > until recently. > > The '-u' didn't hide something unimportant -- it hid a symptom of an > error that remained hidden for years. Okay, there's a wild and context-free assertion. I'll just ignore that, then. -- Eli Schwartz
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: alias problem -- conflict found Eli Schwartz <eschwartz@archlinux.org> - 2019-07-09 23:39 -0400
csiph-web