From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e219d94b946dfc26 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.germany.com!news.unit0.net!news.szaf.org!feeder06.uucp-net.de!news.uucp.at!uucp.gnuu.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Ada.Command_Line and wildcards From: Georg Bauhaus In-Reply-To: <1173295307.860021.90570@p10g2000cwp.googlegroups.com> References: <45dcaed8_6@news.bluewin.ch> <1172132169.423514.271890@s48g2000cws.googlegroups.com> <545bgvF1ttrphU1@mid.individual.net> <1495406.QZvfpqijrQ@linux1.krischik.com> <6dy7mn3hhu.fsf@hod.lan.m-e-leypold.de> <1172328891.5496.62.camel@localhost.localdomain> <1173096982.3712.37.camel@localhost> <8utzwzzv0v.fsf@hod.lan.m-e-leypold.de> <1173185771.11841.69.camel@localhost> <1173295307.860021.90570@p10g2000cwp.googlegroups.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-ID: <1173301927.29628.30.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Date: Wed, 07 Mar 2007 22:12:08 +0100 Organization: Arcor NNTP-Posting-Date: 07 Mar 2007 22:08:54 CET NNTP-Posting-Host: 9b3bb003.newsspool1.arcor-online.net X-Trace: DXC=6S7CiIlHKhSAX0F2i>\BH3YRLhEEVY^HneYN[W On Wed, 2007-03-07 at 11:21 -0800, Hyman Rosen wrote: > One of those other consequences is that many, if not most, UNIX > programs treat a no-argument command as meaning "do your default > action". Yes, it is this default meaning that I had thought about when suggesting that a possible alternative in designing Unix command line conventions would have been not to do implicit, default, things. In this case, when I wanted to cat standard input into a file, I just say what I want: $ cat /dev/stdin > my.text # or use - in place of /dev/stdin It works! ^D $ (Requesting the standard input as /dev/stdin, maybe -, but not '', actually fits nicely with the way Unix uses the filing system. And similarly for Plan 9. :)