diff options
Diffstat (limited to 'shell/bin/cd.php')
-rw-r--r-- | shell/bin/cd.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/shell/bin/cd.php b/shell/bin/cd.php index 3679e88..e8505bd 100644 --- a/shell/bin/cd.php +++ b/shell/bin/cd.php @@ -1,5 +1,8 @@ <?php -function main($args) { - @$dir = $args[1]; - return php_chdir($dir); +class p_cd extends prog { + public static function main($args, $env) { + @$dir = $args[1]; + return php_chdir($dir); + } } + |