PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » PEAR » PEAR » Bug #1048

pearcmd.php listed instead of pear

Details

Submitted2004-03-21 21:09 UTC
Fromtim dot lokot at printsoft dot com
Assignedcellog
StatusClosed
PackagePEAR
PHP Version4.3.4
OSWin2K Pro
Roadmaps(Not assigned)

Comments

[2004-03-21 21:09 UTC] tim dot lokot at printsoft dot com

Description:
------------
On Windows, when you type "pear" you get the following message:

Usage: pearcmd.php [options] command [command-options] <parameters>
Type "pearcmd.php help options" to list all options.
Type "pearcmd.php help <command>" to get the help for the specified command.

I've only listed the first part, because it says the command to use is "pearcmd.php" when in reality, its only the word "pear"

Expected result:
----------------
I would expect to see this:

Usage: pear [options] command [command-options] <parameters>
Type "pear help options" to list all options.
Type "pear help <command>" to get the help for the specified command.

[2004-04-04 23:28 UTC] tim dot lokot at printsoft dot com

The easiest method by far, which I also believe holds true for *nix as well, would be to set an environment variable in the batch file (or whatever wrapper that the *nix version uses), and then check the existance of that variable in the pearcmd.php file. If it is there, then the contents of the help should be modified appropriately.

pearcmd.php would have to destroy the variable when it is finished with it, or else it will persist for the lifetime of the shell window (I think). This would stop someone from running "pear" and then "pearcmd" only to have the incorrect documentation appearing the second time.

[2004-05-16 19:14 UTC] paj at pearfr dot org

This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.

In case this was a pear.php.net website problem, the change will show
up on the website in short time.

Thank you for the report, and for helping us make PEAR better.