diff options
Diffstat (limited to 'shell/bin/rm.php')
-rw-r--r-- | shell/bin/rm.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/shell/bin/rm.php b/shell/bin/rm.php index 7bb7aef..5eadaff 100644 --- a/shell/bin/rm.php +++ b/shell/bin/rm.php @@ -1,8 +1,10 @@ <?php -function main($args) { - $me = array_shift($args); - foreach ($args as $file) { - unlink($file); +class p_rm extends prog { + public static function main($args, $env) { + $me = array_shift($args); + foreach ($args as $file) { + unlink($file); + } } } |