fish-shell/doc_src
Radomír Bosák 254762f30f Fix status code when bad command name is entered
This commit fixes a bug which causes that

   fish -c ')'; echo $status

("Illegal command name" error) returns 0. This is inconsistent with
e.g. when trying to run non-existent command:

   fish -c 'invalid-command'; echo $status

("Unknown command" error) which correctly returns 127.

A new status code,

    STATUS_ILLEGAL_CMD = 123

is introduced - which is returned whenever the 'Illegal command name *'
message is printed.

This commit also adds a test which checks if valid commands return 0,
while commands with illegal name return status code 123.

Fixes #3606.
2016-12-03 13:14:40 -08:00
..
abbr.txt Add the possibility to rename abbreviations 2016-12-01 14:42:20 -08:00
alias.txt Fix alias doc typo 2016-10-30 21:25:21 -07:00
and.txt Fix documentation links to or and and command 2016-05-24 17:16:30 -07:00
ascii_fish.png Lossless recompress of images with pngcrush+zopfli 2016-06-18 10:03:26 -07:00
begin.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
bg.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
bind.txt Fix warning: Found unknown command `\args' 2016-10-10 11:50:39 -07:00
block.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
break.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
breakpoint.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
builtin.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
case.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
cd.txt limit size of cd history to 25 directories 2016-03-23 13:36:00 -07:00
command.txt Adds a --quiet/-q option for command -s (#3591) 2016-11-28 07:26:01 -08:00
commandline.txt commandline docs: Add examples for the filters 2015-09-11 21:05:55 +02:00
commands.hdr.in Update menus for consistency 2014-09-07 17:35:19 +01:00
complete.txt Fix typo 2016-06-23 18:23:10 +02:00
contains.txt contains: add documentation regarding the use of -- 2014-10-26 19:02:03 +08:00
continue.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
count.txt Various additions and fixes 2014-09-03 14:43:27 +01:00
design.hdr docs/design.hdr: inclusive lanugage 2015-08-17 20:27:13 +08:00
dirh.txt limit size of cd history to 25 directories 2016-03-23 13:36:00 -07:00
dirs.txt Document dirs -c 2015-09-11 11:33:04 +02:00
echo.txt trivial fixes to make doxygen happy 2016-04-23 12:26:57 -07:00
else.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
emit.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
end.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
eval.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
exec.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
exit.txt Updated exit.txt reference to source 2015-03-18 16:22:29 -04:00
false.txt Make false/true into builtins 2014-09-29 13:39:35 -07:00
faq.hdr add sources of 3rd-party extensions to the FAQ 2016-07-27 20:55:04 -07:00
fg.txt Fix documentation 2016-07-16 20:22:41 -07:00
fish_config.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
fish_indent.txt make fish_indent options consistent with fish 2016-07-05 20:22:44 -07:00
fish_key_reader.txt make fish_indent options consistent with fish 2016-07-05 20:22:44 -07:00
fish_mode_prompt.txt Document fish_mode_prompt 2016-06-26 11:36:31 +02:00
fish_prompt.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
fish_right_prompt.txt update lexicon for latest docs 2016-04-04 15:23:56 -07:00
fish_update_completions.txt Documentation update 2014-09-03 14:43:24 +01:00
fish_vi_mode.txt Deprecate fish_vi_mode 2016-04-26 15:21:15 +02:00
fish.txt make debug() output more useful 2016-05-17 14:52:55 -07:00
for.txt Mention that for variables are local. 2015-02-06 07:48:47 +01:00
FORMATTING.md Fix documentation 2016-07-16 20:22:41 -07:00
funced.txt Use $VISUAL before $EDITOR in funced 2015-09-02 13:55:59 +02:00
funcsave.txt docs: Improve autoloading/event documentation 2015-09-11 11:33:04 +02:00
function.txt revert the --shadow-builtin flag 2016-08-24 22:56:19 -07:00
functions.txt Various additions and fixes 2014-09-03 14:43:27 +01:00
help.txt Allow browser for help to be chosen indenpendent of $BROWSER. 2016-11-25 18:35:22 -08:00
history.txt make status saner vis-a-vis arg parsing 2016-11-07 12:11:08 -08:00
if.txt Fix documentation links to or and and command 2016-05-24 17:16:30 -07:00
index.hdr.in Fix status code when bad command name is entered 2016-12-03 13:14:40 -08:00
isatty.txt isatty: revert to previous behaviour 2015-02-01 18:18:34 +08:00
jobs.txt Various additions and fixes 2014-09-03 14:43:27 +01:00
license.hdr add flock fallback 2016-12-03 16:36:06 +08:00
math.txt add floating point output to math command 2016-05-03 19:29:04 -07:00
nextd.txt limit size of cd history to 25 directories 2016-03-23 13:36:00 -07:00
not.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
open.txt Don't use open function if a command exists 2016-10-26 15:48:42 +02:00
or.txt Update docs to reflect new if/while condtion chaining 2016-05-19 13:01:12 -07:00
popd.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
prevd.txt limit size of cd history to 25 directories 2016-03-23 13:36:00 -07:00
printf.txt Fix imbalanced backticks 2016-07-16 20:22:41 -07:00
prompt_pwd.txt Fix documentation 2016-07-16 20:22:41 -07:00
psub.txt psub: add -s, --suffix 2015-11-14 13:15:30 +01:00
pushd.txt Document pushd "+N" and "-N" 2015-09-11 11:33:04 +02:00
pwd.txt Simplify styling 2014-09-03 14:43:25 +01:00
random.txt Shorten some of the language in random docs 2016-01-07 20:57:34 -08:00
read.txt Add --right-prompt flag to read 2014-09-21 21:10:07 -07:00
realpath.txt make fish's realpath compatible with GNU realpath 2016-10-04 20:19:44 -07:00
return.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
set_color.txt Merge branch 'master' of https://github.com/fish-shell/fish-shell into colorfix 2016-09-10 15:09:12 -07:00
set.txt Consistency fixes 2014-09-03 14:43:27 +01:00
source.txt clarify documentation for the source command 2016-04-06 17:18:06 -07:00
status.txt make status saner vis-a-vis arg parsing 2016-11-07 12:11:08 -08:00
string.txt fix string documentation wrt --no-quoted 2016-10-11 20:08:07 -07:00
suspend.txt Update suspend docs. When used, show how to resume 2016-07-01 01:18:07 -07:00
switch.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
test.txt Try to clarify test documentation for newbies 2016-02-28 17:52:42 +01:00
trap.txt Various additions and fixes 2014-09-03 14:43:27 +01:00
true.txt Make false/true into builtins 2014-09-29 13:39:35 -07:00
tutorial.hdr Fix documentation 2016-07-16 20:22:41 -07:00
type.txt Fix documentation 2016-07-16 20:22:41 -07:00
ulimit.txt Various additions and fixes 2014-09-03 14:43:27 +01:00
umask.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
user_doc.css Remove optimizeLegibility and display:inline-block 2016-08-14 16:52:27 -07:00
user_doc.footer.html Documentation update 2014-09-03 14:43:24 +01:00
user_doc.header.html Documentation update 2014-09-03 14:43:24 +01:00
vared.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
while.txt Fix documentation links to or and and command 2016-05-24 17:16:30 -07:00