Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.os2.programmer.misc > #1442
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!newsfeed2.kddnet.ad.jp!newsfeed2.kddnet.ad.jp!newsfeed.kddnet.ad.jp!newsfeed.kddnet.ad.jp!newsfeed.dacom.co.kr!newsfeed.hananet.net!tnews.hananet.net!not-for-mail |
|---|---|
| From | KO Myung-Hun <komh@chollian.net> |
| Newsgroups | comp.os.os2.programmer.misc |
| Subject | Re: Change of string parsing in libc066 |
| Date | Wed, 05 Nov 2014 10:03:21 +0900 |
| Organization | hanarotelecom |
| Lines | 48 |
| Message-ID | <54597759.3060800@chollian.net> (permalink) |
| References | <bKudnfeu496PWsrJnZ2dnUU7-b-dnZ2d@giganews.com> <54586928.6050803@chollian.net> <xsqdnd3keZ5RkcTJnZ2dnUU7-YmdnZ2d@giganews.com> |
| NNTP-Posting-Host | 211.244.64.26 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | tnews.hananet.net 1415149397 9999 211.244.64.26 (5 Nov 2014 01:03:17 GMT) |
| X-Complaints-To | newsadmin@hanaro.com |
| NNTP-Posting-Date | Wed, 5 Nov 2014 01:03:17 +0000 (UTC) |
| To | James Moe <jimoeDESPAM@sohnen-moe.com> |
| User-Agent | Mozilla/5.0 (OS/2; Warp 4.5; rv:10.0.6esrpre) Gecko/20120715 Firefox/10.0.6esrpre SeaMonkey/2.7.2 |
| In-Reply-To | <xsqdnd3keZ5RkcTJnZ2dnUU7-YmdnZ2d@giganews.com> |
| X-Enigmail-Version | 1.3.5 |
| Xref | csiph.com comp.os.os2.programmer.misc:1442 |
Show key headers only | 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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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