Merge commit 'refs/merge-requests/6' of git://gitorious.org/fish-shell/fish-shell into merge_req_6

This commit is contained in:
Christopher Nilsson
2010-11-24 22:34:29 +11:00
10 changed files with 41 additions and 8 deletions

View File

@@ -150,7 +150,7 @@ function __fish_config_interactive -d "Initializations that should be performed
fish_greeting
else
if set -q fish_greeting
switch $fish_greeting
switch "$fish_greeting"
case ''
# If variable is empty, don't print anything, saves us a fork

View File

@@ -21,6 +21,8 @@ function eval -S -d "Evaluate parameters as a command"
end
echo begin\; $argv \;end eval2_inner \<\&3 3\<\&- | . 3<&0
set -l res $status
status --job-control $mode
return $res
end

View File

@@ -86,7 +86,7 @@ function help --description "Show help for the fish shell"
# documentation. It's a bit of a hack, since it relies on the
# Doxygen markup format to never change.
case (sed -n < $__fish_help_dir/commands.html -e "s/.*<h2><a class=\"anchor\" name=\"\([^\"]*\)\">.*/\1/p")
case (sed -n 's/.*<h2><a class="anchor" \(id\|name\)="\([^"]*\)">.*/\2/p' $__fish_help_dir/commands.html)
set fish_help_page "commands.html\#$fish_help_item"
case $help_topics
set fish_help_page "index.html\#$fish_help_item"