home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!news.univie.ac.at!blekul11!frmop11!dearn!dmswwu1a!reschke
- Organisation: Westfaelische Wilhelms-Universitaet, Muenster, Germany
- Date: Friday, 31 Jul 1992 11:20:32 MES
- From: Julian F. Reschke <RESCHKE@DMSWWU1A.UNI-MUENSTER.DE>
- Message-ID: <92213.112032RESCHKE@DMSWWU1A.UNI-MUENSTER.DE>
- Newsgroups: comp.sys.atari.st.tech
- Subject: Re: Problems with ARGV
- References: <92211.111512RESCHKE@DMSWWU1A.UNI-MUENSTER.DE>
- <1992Jul29.130755.27902@mks.com> <1992Jul29.221225.24054@mnemosyne.cs.du.edu>
- <1992Jul30.171118.2682@its.bt.co.uk>
- Lines: 22
-
- In article <1992Jul30.171118.2682@its.bt.co.uk>, jvt@its.bt.co.uk (John Trickey)
- says:
- >Am I missing something? It seems all too easy for me. Why not pass ARGC ?
- >
- >so in the above example:
- >
- >ARGC="3"
- >
- >(assuming the cli does not interpret the *.c) and
- >
- >ARGV="grep\0\0*.c\0"
- >
- >(yes there are 2 \0 's on the end --- remember a str is terminated by \0)
-
- Yes, you ARE missinng something. On Pexec, GEMDOS copied the environment
- to a newly allocated buffer. And guess how many bytes are copied? Upto
- the first \0\0 :-(((
-
- ___________________________ cut here _____________________________________
- JULIAN F. RESCHKE, HENSENSTR. 142, D-W4400 MUENSTER
- EMAIL: JULIAN@MATH.UNI-MUENSTER.DE, JR@MS.MAUS.DE
- ____________________ correct me if I'm wrong _____________________________
-