Re: System class/package?

From: Date: Fri, 03 Aug 2001 05:12:32 +0000
Subject: Re: System class/package?
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-1259@lists.php.net to get a copy of this message
Andrei Zmievski wrote: > > On Thu, 02 Aug 2001, Stig S. Bakken wrote: > > We need a way to provide portable substitutions for commands like "rm > > -rf", "mkdir -p" and so on. So I'ld like to make a "System" > > class > > providing function for each command. > > > > In general we could take a UNIX command, make a function for it that > > takes two parameters: the regular list of arguments, and a list of > > options. For example: > > > > System::rm($this->tmpdir, "recursive") > > What's wrong with System::rm($this->tmpdir, '-r')? :) Just trying to help people remember the option names. Short options have a tendency to get obscure, how intuitively named are "ls"'s options for example? :-) - Stig

« previous php.pear.dev (#1259) next »