Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.os2.programmer.misc > #1698

Re: Parsed command info

Path csiph.com!aioe.org!eWlQ16mjELV/9MJugtmW9Q.user.gioia.aioe.org.POSTED!not-for-mail
From Dave Yeo <dave.r.yeo@gmail.com>
Newsgroups comp.os.os2.programmer.misc
Subject Re: Parsed command info
Date Thu, 1 Apr 2021 23:03:55 -0800
Organization Aioe.org NNTP Server
Lines 12
Message-ID <s46c4a$1bmi$1@gioia.aioe.org> (permalink)
References <s4544l$r78$1@dont-email.me>
NNTP-Posting-Host eWlQ16mjELV/9MJugtmW9Q.user.gioia.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (OS/2; Warp 4.5; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
X-Notice Filtered by postfilter v. 0.9.2
Xref csiph.com comp.os.os2.programmer.misc:1698

Show key headers only | View raw


On 04/01/21 10:41 AM, Iron Spring Software wrote:
> Is there a way to get a fully-parsed command line, with wildcard
> expansions, etc. from command.exe? For PL/I I have been using the
> command as typed from pib_pchcmd as the parm to the main procedure, but
> for compatibility with unix I'd like to also get argc and argv.

Seems most compilers libc should have a function to do that, for 
example, with GCC you can call _wildcard (&argc, &argv) at the beginning 
of main to expand wildcards, there's also _response (&argc, &argv) for 
expanding response files.
cmd.exe itself doesn't expand wildcards.
Dave

Back to comp.os.os2.programmer.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Parsed command info Iron Spring Software <Peter_Flass@Yahoo.com> - 2021-04-01 11:41 -0700
  Re: Parsed command info Ian Stewartson <IanStewartson@dial.pipex.com> - 2021-04-01 20:38 +0000
    Re: Parsed command info Dave Yeo <dave.r.yeo@gmail.com> - 2021-04-01 22:50 -0800
  Re: Parsed command info Dave Yeo <dave.r.yeo@gmail.com> - 2021-04-01 23:03 -0800
    Re: Parsed command info Peter Flass <peter_flass@yahoo.com> - 2021-04-02 12:24 -0700

csiph-web