From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26313 invoked by alias); 4 Feb 2015 19:03:17 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19813 Received: (qmail 27793 invoked from network); 4 Feb 2015 19:03:13 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 X-AuditID: cbfec7f5-b7fc86d0000066b7-7d-54d26c5a8967 Date: Wed, 04 Feb 2015 19:02:48 +0000 From: Peter Stephenson To: zsh-users@zsh.org Subject: Re: The "-" and "--" options (was Re: ${var:1:1:=y}) Message-id: <20150204190248.3571f2e2@pwslap01u.europe.root.pri> In-reply-to: <150204091014.ZM3216@torch.brasslantern.com> References: <54D155C8.4080600@eastlink.ca> <412544FB-49A2-43AA-BC76-DC1AF1AA71BE@larryv.me> <54D16A4C.9010609@eastlink.ca> <150203192508.ZM2159@torch.brasslantern.com> <54D195B2.4070205@gmx.com> <150204091014.ZM3216@torch.brasslantern.com> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrMLMWRmVeSWpSXmKPExsVy+t/xq7pROZdCDG6vs7DYcXIlowOjx6qD H5gCGKO4bFJSczLLUov07RK4Mh40hRZsYqvoPuzRwNjB2sXIySEhYCJxs/8AlC0mceHeerYu Ri4OIYGljBLPL/9nA0kICSxikjiwmgcisY1RouX2Z7AEi4CqxIe971lAbDYBQ4mpm2Yzgtgi AqISy1dsZgexhQVsJRa2NTF3MXJw8ArYS/z/KQIS5hSwlLj09QczxMxVTBLz700H6+UX0Je4 +vcTE8RF9hIzr5wBi/MKCEr8mHwPbBezgJbE5m1NrBC2vMTmNW+ZIQ5Vl7hxdzf7BEahWUha ZiFpmYWkZQEj8ypG0dTS5ILipPRcI73ixNzi0rx0veT83E2MkID9uoNx6TGrQ4wCHIxKPLwd vRdDhFgTy4orcw8xSnAwK4nwdnhdChHiTUmsrEotyo8vKs1JLT7EyMTBKdXAOO+Dnj7rg79J 2+f2KYg1WLCrrZNaspP9l/AHt7sMy++/LG243BXy+PeKPztaUh8c+nX4ZX/qoXsefO8T9F6G h0Ut912ws0l7o2/uFuvVyxzdzvNKF9hkf2H2nXfp/Ktv0vVxeim3D54Q8j5SxFOpHrBwfU3a t9UHis22qOu+/3ZALFh8Wpb6MiWW4oxEQy3mouJEAMp8GUw2AgAA On Wed, 4 Feb 2015 09:10:14 -0800 Bart Schaefer wrote: > Also "echo" does NOT accept "--" in this way, it ONLY acceps a solitary > "-". I forget why that is. I think the decision for echo (some years ago) was that it would be better to make it consistent with versions of /bin/echo rather than with the normal internal interface, since shell scripts were written to the external echo interface even if the shell had the builtin. It seems this argument still works on Linux at least: % /bin/echo -- foo -- foo so I think we were (probably) right and this is the best consistency we're going to get. However, there were already incompatible BSD / SYSV echoes even then, so it was never a full consistency with all possible external command variants of echo. pws