[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: built-in commands give no syntax error on trailing garbage
From: |
Chet Ramey |
Subject: |
Re: built-in commands give no syntax error on trailing garbage |
Date: |
Sun, 18 Sep 2016 20:00:31 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
On 9/14/16 6:01 AM, idallen@idallen-fibe.dyndns.org wrote:
> Bash Version: 4.3
> Patch Level: 46
> Release Status: release
>
> Description:
> Many built-in commands ignore trailing garbage instead of giving
> a syntax error, and this leads newbies into making dumb mistakes
> that they think work fine because of no error message, e.g.:
Shells haven't really ever done this, back to the Bourne shell, though
some (ksh93, mksh) do display an error on too many arguments to `cd'.
I'll take this into consideration for a future version.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/