TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: David Noon
from: Thomas Seeling
date: 1999-01-19 07:49:32
subject: Pl/I

Hallo David,

Am 13 Jan 99 um 21:55 schrieb David Noon an Francois Thunus:

 DN> It gets worse. The only way to get the parameter string without resorting
 DN> to raw API calls is Paramstr(i), where each token of the parameter string
 DN> has been parsed out. You have to put them back together again and you have
 DN> lost the spacing information! Since, under OS/2, filenames can contain
 DN> spaces and the spaces are significant (Murray's parameter is named
 DN> 'infile', so I would infer it is the filename of an input file) you will
 DN> not be able to get back to your original data in Pascal.

since shells separate on whitespace the user has to quote filenames with
spacing in them. The runtime should be (i'd like to say "must")
respect quoting when building up the paramstr array (**argv respectively).
I assume that Dos compilers built before Dos Version 7 (aka Win95) did not
do this.


Tschau...Thomas

--- GED3 3.00.Beta5+
* Origin: Die TeX-Box: +49-6036-980114 V.34/X.75 24h (2:2461/332.42)
SEEN-BY: 396/1 632/0 371 633/260 262 267 270 371 635/444 506 728 639/252
SEEN-BY: 670/218
@PATH: 2461/332 300 244/1634 1200 1500 396/1 633/260 635/506 728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.