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!news2.google.com!news.germany.com!newsfeed-0.progon.net!progon.net!news-zh.switch.ch!switch.ch!news.ip-plus.net!newsfeed.ip-plus.net!news.post.ch!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Ada.Command_Line and wildcards Date: Mon, 05 Mar 2007 11:34:13 +0100 Organization: Swisscom IP+ (post doesn't reflect views of Swisscom) Message-ID: <45ebf226$1@news.post.ch> References: <45dcaed8_6@news.bluewin.ch> <1172132169.423514.271890@s48g2000cws.googlegroups.com> <545bgvF1ttrphU1@mid.individual.net> <1495406.QZvfpqijrQ@linux1.krischik.com> NNTP-Posting-Host: 194.41.146.1 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: atlas.ip-plus.net 1173090863 27155 194.41.146.1 (5 Mar 2007 10:34:23 GMT) X-Complaints-To: abuse@ip-plus.net NNTP-Posting-Date: Mon, 5 Mar 2007 10:34:23 +0000 (UTC) User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) In-Reply-To: X-Original-NNTP-Posting-Host: w01iwt.pnet.ch X-Original-Trace: 5 Mar 2007 11:34:14 +0200, w01iwt.pnet.ch Xref: g2news2.google.com comp.lang.ada:9675 Date: 2007-03-05T11:34:13+01:00 List-Id: Brian May schrieb: >>>>>> "Martin" == Martin Krischik writes: > > Martin> No, The VMS also won't expand wildcard. In fact Unix > Martin> shells are pretty alone here. And they got it wrong. Bot > Martin> Dos and VMS will warn you on: > > Martin> DEL *.* > > Martin> but not on > > Martin> DEL Some_File.Txt > > I realize this thread is old, but if I type "rm *", my shell (zsh) asks: > > zsh: sure you want to delete all the files in /tmp/a [yn]? Others pointed out Z Shell as well which got me to give Z Shell a try. And you know what: I like it! > > DOS *still* has this broken special case *.* wildcard? That is dated > from 8.3 filenames. DOS is not the only one, VMS got that as well - only VMS has 32.32 file names (unless you use the POSIX compliant ODS5 file system). As for windows Yes and no! *.* and * will both delete the same file list: ----------------------------------------- >del * C:\Temp\temp\* : Are you sure (Y/N)? Y Deleting C:\Temp\temp\x Deleting C:\Temp\temp\x.x 2 files deleted ----------------------------------------- >del *.* C:\Temp\temp\*.* : Are you sure (Y/N)? Y Deleting C:\Temp\temp\x Deleting C:\Temp\temp\x.x 2 files deleted ----------------------------------------- Dos and Windows are of course a mess - my quote was more in the direction of VMS. The VMS shell has very good foundations but is lacking in eye candy, syntactic sugar and bells&whistles. - Sufficiently lacking that working with it is unpleasant. Martin