From 6e0745b57adcf44e455cf4a21754471c11484ba1 Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Sun, 7 Jul 2002 21:01:10 +0000 Subject: [PATCH] * don't set include path if running 'pear.in' without substitutions made by the installer * sort command names in help output --- pear/scripts/pear.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pear/scripts/pear.in b/pear/scripts/pear.in index d075a8d449..6e0fa3ef29 100644 --- a/pear/scripts/pear.in +++ b/pear/scripts/pear.in @@ -24,7 +24,9 @@ /** * @nodep Gtk */ -ini_set('include_path', '@include_path@'); +if ('@include_path@' != '@'.'include_path'.'@') { + ini_set('include_path', '@include_path@'); +} ini_set('allow_url_fopen', true); set_time_limit(0); ob_implicit_flush(true); @@ -203,6 +205,7 @@ function usage($error = null, $helpsubject = null) "Commands:\n"; $maxlen = max(array_map("strlen", $all_commands)); $formatstr = "%-{$maxlen}s %s\n"; + ksort($all_commands); foreach ($all_commands as $cmd => $class) { $put .= sprintf($formatstr, $cmd, PEAR_Command::getDescription($cmd)); } -- 2.50.1