[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] MiNTlib and ARGV



On Fri, 2011-01-14 at 10:01 +0100, Adam Kłobukowski wrote:
> On 14.01.2011 09:44, Jo Even Skarstein wrote:
> > Doesn't MiNTlib's startup-stub evaluate the normal command-line? I would
> > expect it to evaluate the commandline when ARGV wasn't present, but when
> > trying to Pexec e2fsck last night it wouldn't read the command line. I
> > had to use ARGV.
> 
> IIRC, if ARGV data is present in environment, command line arguments are 
> ignored. Check your environemnt before calling e2fsck.

You are right. The environment is polluted. The program is started with
no parameters, yet bash creates an ARGV in the child's environment. If I
start the program from the desktop it's OK.

Jo Even