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


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

Re: Change of string parsing in libc066

From KO Myung-Hun <komh@chollian.net>
Newsgroups comp.os.os2.programmer.misc
Subject Re: Change of string parsing in libc066
Date 2014-11-05 10:03 +0900
Organization hanarotelecom
Message-ID <54597759.3060800@chollian.net> (permalink)
References <bKudnfeu496PWsrJnZ2dnUU7-b-dnZ2d@giganews.com> <54586928.6050803@chollian.net> <xsqdnd3keZ5RkcTJnZ2dnUU7-YmdnZ2d@giganews.com>

Show all headers | View raw


Hi/2.

James Moe wrote:
> On 11/03/2014 10:50 PM, KO Myung-Hun wrote:
>> First, unset UNIXROOT in your program.
>>
>   I added setenv("UNIXROOT", "", 1) at the beginning of the program. It
> made no difference.
> 

You'd better use unset() rather than setenv(). And you seemed not to see
my second reply correctly. Execute your program *AFTER* unsetting
UNIXROOT not at the begining of the program.

>   Here are outputs from attempts to use system():
> sh: D:usrbingpg.exe: No such file or directory
> sh: G:cvoicepmmdevtestcasebinstunnel.exe: No such file or directory
> 
> Regardless of any other consideration, libc066 has broken PMMail.
> Updating libc should not do that.
> 

*ABSOLUTELY* agree.

Nevertheless, if you want to use '\', escape it with '\'. That is,
replace '\' with '\\'. Or if it is a path, replace '\' with '/'.

Anyway this is not universal, because the default shell may be changed
depending on UNIXROOT setting or some various conditions. See the
following for more deailts.

http://trac.netlabs.org/libc/browser/branches/libc-0.6/src/emx/src/lib/sys/b_processGetDefaultShell.c

That backend function was exported. So you can use that backend function
to get a default shell. And in according to it, you can reconstruct your
argument string.

Good luck.

-- 
KO Myung-Hun

Using Mozilla SeaMonkey 2.7.2
Under OS/2 Warp 4 for Korean with FixPak #15
In VirtualBox v4.1.32 on Intel Core i7-3615QM 2.30GHz with 8GB RAM

Korean OS/2 User Community : http://www.ecomstation.co.kr

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


Thread

Change of string parsing in libc066 James Moe <jimoeDESPAM@sohnen-moe.com> - 2014-11-03 11:18 -0700
  Re: Change of string parsing in libc066 KO Myung-Hun <komh@chollian.net> - 2014-11-04 14:50 +0900
    Re: Change of string parsing in libc066 James Moe <jimoeDESPAM@sohnen-moe.com> - 2014-11-03 23:44 -0700
      Re: Change of string parsing in libc066 "A.D. Fundum" <what.ever@neverm.ind> - 2014-11-04 13:14 +0100
      Re: Change of string parsing in libc066 KO Myung-Hun <komh@chollian.net> - 2014-11-05 00:43 +0900
    Re: Change of string parsing in libc066 James Moe <jimoeDESPAM@sohnen-moe.com> - 2014-11-04 10:28 -0700
      Re: Change of string parsing in libc066 "Doug Bissett" <dougb007!SPAM@telus.net> - 2014-11-04 18:58 +0000
        Re: Change of string parsing in libc066 James Moe <jimoeDESPAM@sohnen-moe.com> - 2014-11-04 14:14 -0700
      Re: Change of string parsing in libc066 KO Myung-Hun <komh@chollian.net> - 2014-11-05 10:03 +0900
    Re: Change of string parsing in libc066 James Moe <jimoeDESPAM@sohnen-moe.com> - 2014-11-05 18:09 -0700
      Re: Change of string parsing in libc066 KO Myung-Hun <komh@chollian.net> - 2014-11-06 13:05 +0900
      Re: Change of string parsing in libc066 James Moe <jimoeDESPAM@sohnen-moe.com> - 2014-11-06 13:37 -0700
      Re: Change of string parsing in libc066 Dave Yeo <dave.r.yeo@gmail.com> - 2014-11-06 20:35 -0800

csiph-web