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!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.albasani.net!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Ada.Command_Line and wildcards Date: Fri, 23 Feb 2007 10:29:16 +0100 Organization: Jacob's private Usenet server Message-ID: References: <45dcaed8_6@news.bluewin.ch> <1172132169.423514.271890@s48g2000cws.googlegroups.com> <87hctei5pf.fsf@ludovic-brenta.org> NNTP-Posting-Host: taasingegade.news.jacob-sparre.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: jacob-sparre.dk 1172222956 28552 85.82.239.166 (23 Feb 2007 09:29:16 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 23 Feb 2007 09:29:16 +0000 (UTC) User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:jn0/iSWWYnzN6CJcAXVPSiYOqzM= Xref: g2news2.google.com comp.lang.ada:9450 Date: 2007-02-23T10:29:16+01:00 List-Id: Jean-Pierre Rosen wrote: > Did that, I have an interactive mode. I also have a command-line > mode, and I would precisely prefer that they work the same! You can't get that. That would require that _you_ controlled which shells your users use to run your program from. Even on a Microsoft operating system, you haven't got that much control. Actually it might be possible. Isn't there some way to ask which process is the parent of another process? You could simply make the program stop with an error message, if the parent process isn't a conforming shell. Greetings, Jacob -- "In space, no-one can press CTRL-ALT-DEL" -- An Ada programmer