comp.lang.ada
 help / color / mirror / Atom feed
From: "RasikaSrinivasan@gmail.com" <RasikaSrinivasan@gmail.com>
Subject: Re: Command Line on windows
Date: Fri, 12 Sep 2008 07:36:25 -0700 (PDT)
Date: 2008-09-12T07:36:25-07:00	[thread overview]
Message-ID: <723c80f5-7df4-4bca-b07b-58a5a5aeb60d@i76g2000hsf.googlegroups.com> (raw)
In-Reply-To: 48ca5fd4$1_7@news.bluewin.ch

On Sep 12, 8:25 am, Gautier <gaut...@fakeaddress.nil> wrote:
> Not solving your problem, but you'd prefer to use Ada.Command_Line which
> is standard and with Ada strings instead of C strings.
> _________________________________________________________
> Gautier's Ada programming --http://sf.net/users/gdemont/
>
> NB: For a direct answer, e-mail address on the Web site!

unfortunately ada.command_line says the behaviour is implementation
defined.

in fact the following is a test of my original attempt :

with Text_Io; use Text_Io;
with Ada.Command_Line;

procedure Test_Cli is
begin
   Put_Line(Ada.Command_Line.Argument(1));
end Test_Cli ;

this when compiled with gnat - produced results similar to
gnat.command_line. That is why I thought gnat.command_line might work
better.

   function Get_Argument (Do_Expansion : Boolean := False) return
String;
   --  Returns the next element on the command line which is not a
switch.
   --  This function should not be called before Getopt has returned
   --  ASCII.NUL.

the do_expansion led me to believe i could turn it off.

any other ideas?

of course specifying for example "*.adb" (within quotations) does
disable it but i guess that is the unix behaviour expected.

thanks, srini



  reply	other threads:[~2008-09-12 14:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-12 12:05 Command Line on windows RasikaSrinivasan
2008-09-12 12:25 ` Gautier
2008-09-12 14:36   ` RasikaSrinivasan [this message]
2008-09-12 14:59     ` Gautier
2008-09-12 15:54       ` Jean-Pierre Rosen
2008-09-12 16:31         ` Keith Thompson
2008-09-12 17:00         ` Pascal Obry
2008-09-12 15:18 ` Jeffrey R. Carter
2008-09-12 15:27   ` Adam Beneschan
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox