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!news2.google.com!news.germany.com!newsfeed.freenet.de!newsfeed01.chello.at!newsfeed02.chello.at!news.hispeed.ch.POSTED!not-for-mail Message-Id: <1187622.d0GVblWSaT@linux1.krischik.com> From: Martin Krischik Subject: Re: Ada.Command_Line and wildcards Newsgroups: comp.lang.ada Date: Sat, 24 Feb 2007 19:28:16 +0100 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> User-Agent: KNode/0.10.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@hispeed.ch Organization: hispeed.ch NNTP-Posting-Host: 84.73.230.248 (84.73.230.248) NNTP-Posting-Date: Sat, 24 Feb 2007 19:34:46 +0100 X-Trace: 39b5645e08546f1ec435d22313 Xref: g2news2.google.com comp.lang.ada:9495 Date: 2007-02-24T19:28:16+01:00 List-Id: Markus E Leypold wrote: > > Martin Krischik writes: > >> here. And they got it wrong. Bot Dos and VMS will warn you on: > ^^^^^^^^^^^^^^^^^^^ > > Well, Martin, since you're so sure about that: On which criteria did > "they get it wrong"? Where are the specs against which the predicate > "right" can be tested? Georg Does rm -rf /tmp/* work? Allways? What happen when the sum of all fileneames exceed 48kb - which is the current limit for commandlines. On the other hand DELETE /noConfirm sys$scratch:[...]*.*;* on VMS or DEL /SEXY %TEMP%\*.* using 4NT on Windows will work fine no matter how many files are in the temp directory. Just make sure that sys$scratch: is not your home directory! Neither the Dos/Windows etc nor the VMS Shell expand wildcard. Expanding wildcard is done by a library under control of the program called. This is why $ SEARCH MY_TEXT.DAT *.* works so well. Or a better example would be: $ SEARCH *.TXT *HELLO* SEARCH knows that the first parameter is filename and should be expanded and the 2nd is a search pattern and does not. The program know more about the parameters then the shell and therefore the shell expansion in unix might be convenient at first but does not scale all that well when thinks become more compicated. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com