[PEAR-DEV] Console_GetOpt and mkdir bug
by Pierre-Alain Joye other posts by this author
Oct 12 2002 12:18PM messages near this date
[PEAR-DEV] Re: [PEAR] [ANNOUNCEMENT] PEAR-1.0b1 (stable) Released.
|
Re: [PEAR-DEV] Console_GetOpt and mkdir bug
Hello,
I post a bug about mkdir, you can reproduce it with pear_system.phpt
test suites.
http://marc.theaimsgroup.com/?l=pear-dev&m=103433606716980&w=2
In Console_Getopt:getopt() :
if (isset($args[0]{0}) && $args[0]{0} != '-') {
array_shift($args);
}
That drops the 1st dir argument passed to System::mkDir();
Do you why it automaticly drop it if it does not start with '-' ?
Just to know if the problem comes from the call or from getOpt itself.
hth
pa
--
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Pierre-Alain Joye
Sander Roobol
Stig S. Bakken
|