bug-gnustep
[Top][All Lists]
Advanced

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

Bug in NSProcessInfo arguments when using a lots of arguments


From: Manuel Guesdon
Subject: Bug in NSProcessInfo arguments when using a lots of arguments
Date: Thu, 28 Mar 2002 14:41:03 +0100 (CET)

Hi,

With the attached directory, runing the foloing code with       
        ./shared_debug_obj/ix86/linux-gnu/gnu-gnu-gnu/gdlgsdoc --GNU-Debug=dflt 
--verbose=20 ./test.eomodeld2/*.plist

Give no arguments from [[NSProcessInfo  processInfo] arguments]
<<
Mar 28 13:34:53 [12512] proc=
()
Mar 28 13:34:54 [12512] argc=57
Mar 28 13:34:54 [12512] 
argv=./shared_debug_obj/ix86/linux-gnu/gnu-gnu-gnu/gdlgsdoc
Mar 28 13:34:54 [12512] args=
()
>>

It's the same thing runnning gsdoc test.eomodeld2/*.plist 
<<
        Mar 28 13:39:32 [12679] No file names given to parse.
>>


Manuel

Attachment: testhier.tgz
Description: Binary data


//--------------------------------------------------------------------
int
main(int argc, char** argv, char** env)
{
  NSProcessInfo                *proc;
  NSArray                *args;
  CREATE_AUTORELEASE_POOL(pool);
#ifdef GS_PASS_ARGUMENTS
  [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
#endif

  proc = [NSProcessInfo processInfo];
  NSLog(@"proc=\n%@",[proc debugSet]);
  NSLog(@"argc=%d\n",argc);
  NSLog(@"argv=%s\n",argv[0]);
  if (proc == nil)
    {
      NSLog(@"unable to get process information!");
    };

      args = [proc arguments];
      NSLog(@"args=\n%@",args);
    };
  [pool release];
  return 0;
};



reply via email to

[Prev in Thread] Current Thread [Next in Thread]