Discussion:
[PECL-BUG] Bug #12468 [NEW]: Wrong message for invalid command
(too old to reply)
felipensp at gmail dot com
2007-11-17 14:11:17 UTC
Permalink
From: felipensp at gmail dot com
Operating system:
Package version:
PHP version: Irrelevant
Package: Bug System
Bug Type: Bug
Bug description: Wrong message for invalid command

Description:
------------
Wrong message for invalid command.

Reproduce code:
---------------
***@pena:~$ pecl foo

Expected result:
----------------
Command 'foo' is not valid, try 'pecl help'

Actual result:
--------------
Command 'foo' is not valid, try 'pear help'
--
Edit bug report at http://pecl.php.net/bugs/bug.php?id=12468&edit=1
--
m***@php.net
2007-11-17 15:37:14 UTC
Permalink
Edit report at http://pecl.php.net/bugs/bug.php?id=12468&edit=1

ID: 12468
Updated by: ***@php.net
Reported By: felipensp at gmail dot com
-Status: Open
+Status: Verified
Id: 12468
Type: Bug
Package: Bug System
PHP Version: Irrelevant
New Comment:

Thank you for taking the time to write to us, but this is not
a bug.

Hello,

What is the proper message for an invalid command?


Previous Comments:
------------------------------------------------------------------------

[2007-11-17 09:11:16] felipensp at gmail dot com

Description:
------------
Wrong message for invalid command.

Reproduce code:
---------------
***@pena:~$ pecl foo

Expected result:
----------------
Command 'foo' is not valid, try 'pecl help'

Actual result:
--------------
Command 'foo' is not valid, try 'pear help'

------------------------------------------------------------------------
--
Edit this bug report at http://pecl.php.net/bugs/bug.php?id=12468&edit=1
c***@php.net
2007-11-17 15:40:16 UTC
Permalink
Edit report at http://pecl.php.net/bugs/bug.php?id=12468&edit=1

ID: 12468
Updated by: ***@php.net
Reported By: felipensp at gmail dot com
Status: Verified
Id: 12468
Type: Bug
Package: Bug System
PHP Version: Irrelevant
New Comment:

I think it should read "pecl" not "pear"


Previous Comments:
------------------------------------------------------------------------

[2007-11-17 10:37:14] msaraujo at php dot net

Thank you for taking the time to write to us, but this is not
a bug.

Hello,

What is the proper message for an invalid command?

------------------------------------------------------------------------

[2007-11-17 09:11:16] felipensp at gmail dot com

Description:
------------
Wrong message for invalid command.

Reproduce code:
---------------
***@pena:~$ pecl foo

Expected result:
----------------
Command 'foo' is not valid, try 'pecl help'

Actual result:
--------------
Command 'foo' is not valid, try 'pear help'

------------------------------------------------------------------------
--
Edit this bug report at http://pecl.php.net/bugs/bug.php?id=12468&edit=1
p***@roshambo.org
2007-11-17 16:14:54 UTC
Permalink
Edit report at http://pecl.php.net/bugs/bug.php?id=12468&edit=1

ID: 12468
Updated by: ***@roshambo.org
Reported By: felipensp at gmail dot com
Status: Verified
Id: 12468
Type: Bug
Package: Bug System
PHP Version: Irrelevant
New Comment:

This is actually a pear bug, here's a patch:

Index: pear-core/scripts/pearcmd.php
===================================================================
RCS file: /repository/pear-core/scripts/pearcmd.php,v
retrieving revision 1.37
diff -u -r1.37 pearcmd.php
--- pear-core/scripts/pearcmd.php 8 Jan 2007 05:14:01 -0000
1.37
+++ pear-core/scripts/pearcmd.php 17 Nov 2007 14:23:38 -0000
@@ -394,7 +394,7 @@
return "$progname $command [options] $help[0]\n$help[1]";
}
}
- return "Command '$command' is not valid, try 'pear help'";
+ return "Command '$command' is not valid, try '$progname help'";
}


Previous Comments:
------------------------------------------------------------------------

[2007-11-17 10:40:16] cweiske at php dot net

I think it should read "pecl" not "pear"

------------------------------------------------------------------------

[2007-11-17 10:37:14] msaraujo at php dot net

Thank you for taking the time to write to us, but this is not
a bug.

Hello,

What is the proper message for an invalid command?

------------------------------------------------------------------------

[2007-11-17 09:11:16] felipensp at gmail dot com

Description:
------------
Wrong message for invalid command.

Reproduce code:
---------------
***@pena:~$ pecl foo

Expected result:
----------------
Command 'foo' is not valid, try 'pecl help'

Actual result:
--------------
Command 'foo' is not valid, try 'pear help'

------------------------------------------------------------------------
--
Edit this bug report at http://pecl.php.net/bugs/bug.php?id=12468&edit=1
Loading...