From: Kilgallen@eisner.decus.org.nospam (Larry Kilgallen)
Subject: Re: Gnat 3.13p: Command_Name RM A.15
Date: 18 Jan 2001 07:38:32 -0500
Date: 2001-01-18T07:38:32-05:00 [thread overview]
Message-ID: <NGeoaj90epLA@eisner.decus.org> (raw)
In-Reply-To: mailman.979801451.11095.comp.lang.ada@ada.eu.org
In article <mailman.979801451.11095.comp.lang.ada@ada.eu.org>, Christoph Grein <christoph.grein@eurocopter.de> writes:
> Thanks to all for their responses.
>
> Randy Brukardt gave me a nice solution (it may not be applicable for all cases,
> but for me, it worked).
>
> The original question was:
>
> How do I get the full name of Ada.Command_Line.Command_Name? The result of
> Command_Name is implementation dependent.
>
> Open the file with the name given by Command_Name, call the Name function which
> by A8.2(22) must return the full name, then close the file again:
Certainly you are correct that this may not be applicable for all cases.
The assumption that the implementation-dependent Command_Name bears any
relationship to a file name would seem to be fraught with peril. I have
not used an Ada95 compiler on VMS, but I would expect something called
Command_Name to return the command I had typed, rather than the filename
of the executable image that implemented that command. Some typical commands
and images they execute are:
SET PASSWORD SETP0.EXE
SET CLASS SETSHOCLASS.EXE
SHOW CLASS SETSHOCLASS.EXE
SET HOST/HSC HSCPAD.EXE
SET HOST/RLOGIN OPENVMS$RLOGIN.EXE
SET DISPLAY DECW$SETSHODIS.EXE
Those commands do not happen to be implemented in Ada, but they could be.
==============================================================================
Great Inventors of our time: Al Gore -> Internet; Sun Microsystems -> Clusters
==============================================================================
next prev parent reply other threads:[~2001-01-18 12:38 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-18 6:59 Gnat 3.13p: Command_Name RM A.15 Christoph Grein
2001-01-18 12:38 ` Larry Kilgallen [this message]
2001-01-18 14:32 ` Marin David Condic
2001-01-18 14:54 ` Ted Dennison
2001-01-18 15:12 ` Robert Dewar
-- strict thread matches above, loose matches on Subject: below --
2001-01-19 7:26 Christoph Grein
2001-01-18 12:10 Schroeer, Joachim Dr.
2001-01-18 12:19 ` Lutz Donnerhacke
2001-01-16 6:12 Christoph Grein
2001-01-16 14:22 ` Marin David Condic
2001-01-16 18:14 ` Jean-Pierre Rosen
2001-01-17 13:15 ` Marin David Condic
2001-01-17 19:12 ` Jean-Pierre Rosen
2001-01-18 3:28 ` Robert Dewar
2001-01-18 13:23 ` Marin David Condic
2001-01-18 15:15 ` Robert Dewar
2001-01-18 17:37 ` Jean-Pierre Rosen
2001-01-19 20:31 ` Florian Weimer
2001-01-18 3:25 ` Robert Dewar
2001-01-18 14:06 ` Marin David Condic
2001-01-17 19:17 ` Stephen Leake
2001-01-18 3:31 ` Robert Dewar
2001-01-18 14:13 ` Marin David Condic
2001-01-18 15:16 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox