search for: 470c625

Displaying 1 result from an estimated 1 matches for "470c625".

2010 Jun 01
1
[PATCH] fish: help command return error for non-existent commands (RHBZ#597145).
...ot known, use -h to list all commands $ echo $? 1 --- fish/fish.c | 78 ++++++++++++++++++++++++++++++++++++++---------------- fish/fish.h | 4 +- src/generator.ml | 8 +++-- 3 files changed, 62 insertions(+), 28 deletions(-) diff --git a/fish/fish.c b/fish/fish.c index 557a6ac..470c625 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -304,14 +304,18 @@ main (int argc, char *argv[]) file = optarg; break; - case 'h': + case 'h': { + int r = 0; + if (optarg) - display_command (optarg); + r = display_command (optarg);...