diff --git a/doc_src/index.rst b/doc_src/index.rst index a06e28a1a..bcd5def7e 100644 --- a/doc_src/index.rst +++ b/doc_src/index.rst @@ -1048,6 +1048,10 @@ The user can change the settings of ``fish`` by changing the values of certain v - ``argv``, a list of arguments to the shell or function. ``argv`` is only defined when inside a function call, or if fish was invoked with a list of arguments, like ``fish myscript.fish foo bar``. This variable can be changed by the user. +- ``fish_pid``, the process ID (PID) of the shell. + +- ``last_pid``, the process ID (PID) of the last background process. + - ``history``, a list containing the last commands that were entered. - ``HOME``, the user's home directory. This variable can be changed by the user. diff --git a/po/sv.po b/po/sv.po index df482f35e..3a178e5c7 100644 --- a/po/sv.po +++ b/po/sv.po @@ -58809,10 +58809,6 @@ msgstr "Hjälp om jokertecken *.*" msgid "Help on command substitution (SUBCOMMAND)" msgstr "Hjälp om kommandosubstitution (UNDERKOMMANDO)" -#: share/completions/help.fish:32 -msgid "Help on process expansion %JOB" -msgstr "Hjälp om processexpansion %JOB" - #: share/completions/history.fish:1 msgid "Match history items that start with the given prefix" msgstr "" diff --git a/share/completions/help.fish b/share/completions/help.fish index a171f23ba..cb58d120c 100644 --- a/share/completions/help.fish +++ b/share/completions/help.fish @@ -22,7 +22,6 @@ complete -c help -x -a expand-command-substitution -d 'Command substitution' complete -c help -x -a expand-command-substitution -d 'Command substitution (SUBCOMMAND)' complete -c help -x -a expand-home -d 'Home directory expansion ~USER' complete -c help -x -a expand-index-range -d 'Index range expansion' -complete -c help -x -a expand-process -d 'Process expansion %JOB' complete -c help -x -a expand-variable -d 'Variable expansion $VARNAME' complete -c help -x -a expand-wildcard -d 'Wildcard expansion *.*' # Note: This is hard-coded in help.fish - it's not an anchor in the html. diff --git a/src/parse_constants.h b/src/parse_constants.h index 1df7cde39..1d03ce1b7 100644 --- a/src/parse_constants.h +++ b/src/parse_constants.h @@ -240,9 +240,6 @@ void parse_error_offset_source_start(parse_error_list_t *errors, size_t amt); /// Error message when encountering a failed expansion, e.g. for the variable name in for loops. #define FAILED_EXPANSION_VARIABLE_NAME_ERR_MSG _(L"Unable to expand variable name '%ls'") -/// Error message when encountering a failed process expansion, e.g. %notaprocess. -#define FAILED_EXPANSION_PROCESS_ERR_MSG _(L"Unable to find a process '%ls'") - /// Error message when encountering an illegal file descriptor. #define ILLEGAL_FD_ERR_MSG _(L"Illegal file descriptor in redirection '%ls'") diff --git a/tests/checks/signal.fish b/tests/checks/signal.fish index f4e55e926..9b49ceaca 100644 --- a/tests/checks/signal.fish +++ b/tests/checks/signal.fish @@ -8,11 +8,11 @@ $fish -c 'begin; exit 5; true; end' echo $status #CHECK: 5 -$fish -c 'kill -SIGHUP %self' +$fish -c 'kill -SIGHUP $fish_pid' echo $status #CHECK: 129 -$fish -c 'function main; kill -SIGTERM %self; true; end; main' +$fish -c 'function main; kill -SIGTERM $fish_pid; true; end; main' echo $status #CHECK: 143