pkgsrc/shells/fish/Makefile

51 lines
1.3 KiB
Makefile
Raw Normal View History

fish: update to 3.1.0 From Jonathan Schleifer in PR pkg/54965, lightly changed by myself for netbsd support. fish 3.1.0 (released February 12, 2020) Compared to the beta release of fish 3.1b1, fish version 3.1.0: * fixes a regression where spaces after a brace were removed despite brace expansion not occurring (#6564) * fixes a number of problems in compiling and testing on Cygwin (#6549) and Solaris-derived systems such as Illumos (#6553, #6554, #6555, #6556, and #6558); * fixes the process for building macOS packages; * fixes a regression where excessive error messages are printed if Unicode characters are emitted in non-Unicode-capable locales (#6584); and * contains some improvements to the documentation and a small number of completions. If you are upgrading from version 3.0.0 or before, please also review the release notes for 3.1b1 (included below). Release notes for fish 3.1b1 (released January 26, 2020) Notable improvements and fixes * A new $pipestatus variable contains a list of exit statuses of the previous job, for each of the separate commands in a pipeline (#5632). * fish no longer buffers pipes to the last function in a pipeline, improving many cases where pipes appeared to block or hang (#1396). * An overhaul of error messages for builtin commands, including a removal of the overwhelming usage summary, more readable stack traces (#3404, #5434), and stack traces for test (aka [) (#5771). * fish's debugging arguments have been significantly improved. The --debug-level option has been removed, and a new --debug option replaces it. This option accepts various categories, which may be listed via fish --print-debug-categories (#5879). A new --debug-output option allows for redirection of debug output. * string has a new collect subcommand for use in command substitutions, producing a single output instead of splitting on new lines (similar to "$(cmd)" in other shells) (#159). * The fish manual, tutorial and FAQ are now available in man format as fish-doc, fish-tutorial and fish-faq respectively (#5521). * Like other shells, cd now always looks for its argument in the current directory as a last resort, even if the CDPATH variable does not include it or "." (#4484). * fish now correctly handles CDPATH entries that start with .. (#6220) or contain ./ (#5887). * The fish_trace variable may be set to trace execution (#3427). This performs a similar role as set -x in other shells. * fish uses the temporary directory determined by the system, rather than relying on /tmp (#3845). * The fish Web configuration tool (fish_config) prints a list of commands it is executing, to help understanding and debugging (#5584). * Major performance improvements when pasting (#5866), executing lots of commands (#5905), importing history from bash (#6295), and when completing variables that might match $history (#6288). Syntax changes and new commands * A new builtin command, time, which allows timing of fish functions and builtins as well as external commands (#117). * Brace expansion now only takes place if the braces include a "," or a variable expansion, meaning common commands such as git reset HEAD@{0} do not require escaping (#5869). * New redirections &> and &| may be used to redirect or pipe stdout, and also redirect stderr to stdout (#6192). * switch now allows arguments that expand to nothing, like empty variables (#5677). * The VAR=val cmd syntax can now be used to run a command in a modified environment (#6287). * and is no longer recognised as a command, so that nonsensical constructs like and and and produce a syntax error (#6089). * math's exponent operator, '^', was previously left-associative, but now uses the more commonly-used right-associative behaviour (#6280). This means that math '3^0.5^2' was previously calculated as '(3^0.5)^2', but is now calculated as '3^(0.5^2)'. * In fish 3.0, the variable used with for loops inside command substitutions could leak into enclosing scopes; this was an inadvertent behaviour change and has been reverted (#6480). Scripting improvements * string split0 now returns 0 if it split something (#5701). * In the interest of consistency, builtin -q and command -q can now be used to query if a builtin or command exists (#5631). * math now accepts --scale=max for the maximum scale (#5579). * builtin $var now works correctly, allowing a variable as the builtin name (#5639). * cd understands the -- argument to make it possible to change to directories starting with a hyphen (#6071). * complete --do-complete now also does fuzzy matches (#5467). * complete --do-complete can be used inside completions, allowing limited recursion (#3474). * count now also counts lines fed on standard input (#5744). * eval produces an exit status of 0 when given no arguments, like other shells (#5692). * printf prints what it can when input hasn't been fully converted to a number, but still prints an error (#5532). * complete -C foo now works as expected, rather than requiring complete -Cfoo. * complete has a new --force-files option, to re-enable file completions. This allows sudo -E and pacman -Qo to complete correctly (#5646). * argparse now defaults to showing the current function name (instead of argparse) in its errors, making --name often superfluous (#5835). * argparse has a new --ignore-unknown option to keep unrecognized options, allowing multiple argparse passes to parse options (#5367). * argparse correctly handles flag value validation of options that only have short names (#5864). * read -S (short option of --shell) is recognised correctly (#5660). * read understands --list, which acts like --array in reading all arguments into a list inside a single variable, but is better named (#5846). * read has a new option, --tokenize, which splits a string into variables according to the shell's tokenization rules, considering quoting, escaping, and so on (#3823). * read interacts more correctly with the deprecated $IFS variable, in particular removing multiple separators when splitting a variable into a list (#6406), matching other shells. * fish_indent now handles semicolons better, including leaving them in place for ; and and ; or instead of breaking the line (#5859). * fish_indent --write now supports multiple file arguments, indenting them in turn. * The default read limit has been increased to 100MiB (#5267). * math now also understands x for multiplication, provided it is followed by whitespace (#5906). * math reports the right error when incorrect syntax is used inside parentheses (#6063), and warns when unsupported logical operations are used (#6096). * functions --erase now also prevents fish from autoloading a function for the first time (#5951). * jobs --last returns 0 to indicate success when a job is found (#6104). * commandline -p and commandline -j now split on && and || in addition to ; and & (#6214). * A bug where string split would drop empty strings if the output was only empty strings has been fixed (#5987). * eval no long creates a new local variable scope, but affects variables in the scope it is called from (#4443). source still creates a new local scope. * abbr has a new --query option to check for the existence of an abbreviation. * Local values for fish_complete_path and fish_function_path are now ignored; only their global values are respected. * Syntax error reports now display a marker in the correct position (#5812). * Empty universal variables may now be exported (#5992). * Exported universal variables are no longer imported into the global scope, preventing shadowing. This makes it easier to change such variables for all fish sessions and avoids breakage when the value is a list of multiple elements (#5258). * A bug where for could use invalid variable names has been fixed (#5800). * A bug where local variables would not be exported to functions has been fixed (#6153). * The null command (:) now always exits successfully, rather than passing through the previous exit status (#6022). * The output of functions FUNCTION matches the declaration of the function, correctly including comments or blank lines (#5285), and correctly includes any --wraps flags (#1625). * type supports a new option, --short, which suppress function expansion (#6403). * type --path with a function argument will now output the path to the file containing the definition of that function, if it exists. * type --force-path with an argument that cannot be found now correctly outputs nothing, as documented (#6411). * The $hostname variable is no longer truncated to 32 characters (#5758). * Line numbers in function backtraces are calculated correctly (#6350). * A new fish_cancel event is emitted when the command line is cancelled, which is useful for terminal integration (#5973). Interactive improvements * New Base16 color options are available through the Web-based configuration (#6504). * fish only parses /etc/paths on macOS in login shells, matching the bash implementation (#5637) and avoiding changes to path ordering in child shells (#5456). It now ignores blank lines like the bash implementation (#5809). * The locale is now reloaded when the LOCPATH variable is changed (#5815). * read no longer keeps a history, making it suitable for operations that shouldn't end up there, like password entry (#5904). * dirh outputs its stack in the correct order (#5477), and behaves as documented when universal variables are used for its stack (#5797). * funced and the edit-commandline-in-buffer bindings did not work in fish 3.0 when the $EDITOR variable contained spaces; this has been corrected (#5625). * Builtins now pipe their help output to a pager automatically (#6227). * set_color now colors the --print-colors output in the matching colors if it is going to a terminal. * fish now underlines every valid entered path instead of just the last one (#5872). * When syntax highlighting a string with an unclosed quote, only the quote itself will be shown as an error, instead of the whole argument. * Syntax highlighting works correctly with variables as commands (#5658) and redirections to close file descriptors (#6092). * help works properly on Windows Subsytem for Linux (#5759, #6338). * A bug where disown could crash the shell has been fixed (#5720). * fish will not autosuggest files ending with ~ unless there are no other candidates, as these are generally backup files (#985). * Escape in the pager works correctly (#5818). * Key bindings that call fg no longer leave the terminal in a broken state (#2114). * Brackets (#5831) and filenames containing $ (#6060) are completed with appropriate escaping. * The output of complete and functions is now colorized in interactive terminals. * The Web-based configuration handles aliases that include single quotes correctly (#6120), and launches correctly under Termux (#6248) and OpenBSD (#6522). * function now correctly validates parameters for --argument-names as valid variable names (#6147) and correctly parses options following --argument-names, as in "--argument-names foo --description bar" (#6186). * History newly imported from bash includes command lines using && or ||. * The automatic generation of completions from manual pages is better described in job and process listings, and no longer produces a warning when exiting fish (#6269). * In private mode, setting $fish_greeting to an empty string before starting the private session will prevent the warning about history not being saved from being printed (#6299). * In the interactive editor, a line break (Enter) inside unclosed brackets will insert a new line, rather than executing the command and producing an error (#6316). * Ctrl-C always repaints the prompt (#6394). * When run interactively from another program (such as Python), fish will correctly start a new process group, like other shells (#5909). * Job identifiers (for example, for background jobs) are assigned more logically (#6053). * A bug where history would appear truncated if an empty command was executed was fixed (#6032). New or improved bindings * Pasting strips leading spaces to avoid pasted commands being omitted from the history (#4327). * Shift-Left and Shift-Right now default to moving backwards and forwards by one bigword (words separated by whitespace) (#1505). * The default escape delay (to differentiate between the escape key and an alt-combination) has been reduced to 30ms, down from 300ms for the default mode and 100ms for Vi mode (#3904). * The forward-bigword binding now interacts correctly with autosuggestions (#5336). * The fish_clipboard_* functions support Wayland by using [wl-clipboard](https://github.com/bugaevc/wl-clipboard) (#5450). * The nextd and prevd functions no longer print "Hit end of history", instead using a bell. They correctly store working directories containing symbolic links (#6395). * If a fish_mode_prompt function exists, Vi mode will only execute it on mode-switch instead of the entire prompt. This should make it much more responsive with slow prompts (#5783). * The path-component bindings (like Ctrl-w) now also stop at ":" and "@", because those are used to denote user and host in commands such as ssh (#5841). * The NULL character can now be bound via bind -k nul. Terminals often generate this character via control-space. (#3189). * A new readline command expand-abbr can be used to trigger abbreviation expansion (#5762). * A new readline command, delete-or-exit, removes a character to the right of the cursor or exits the shell if the command line is empty (moving this functionality out of the delete-or-exit function). * The self-insert readline command will now insert the binding sequence, if not empty. * A new binding to prepend sudo, bound to Alt-S by default (#6140). * The Alt-W binding to describe a command should now work better with multiline prompts (#6110) * The Alt-H binding to open a command's man page now tries to ignore sudo (#6122). * A new pair of bind functions, history-prefix-search-backward (and forward), was introduced (#6143). * Vi mode now supports R to enter replace mode (#6342), and d0 to delete the current line (#6292). * In Vi mode, hitting Enter in replace-one mode no longer erases the prompt (#6298). * Selections in Vi mode are inclusive, matching the actual behaviour of Vi (#5770). Improved prompts * The Git prompt in informative mode now shows the number of stashes if enabled. * The Git prompt now has an option ($__fish_git_prompt_use_informative_chars) to use the (more modern) informative characters without enabling informative mode. * The default prompt now also features VCS integration and will color the host if running via SSH (#6375). * The default and example prompts print the pipe status if an earlier command in the pipe fails. * The default and example prompts try to resolve exit statuses to signal names when appropriate. Improved terminal output * New fish_pager_color_ options have been added to control more elements of the pager's colors (#5524). * Better detection and support for using fish from various system consoles, where limited colors and special characters are supported (#5552). * fish now tries to guess if the system supports Unicode 9 (and displays emoji as wide), eliminating the need to set $fish_emoji_width in most cases (#5722). * Improvements to the display of wide characters, particularly Korean characters and emoji (#5583, #5729). * The Vi mode cursor is correctly redrawn when regaining focus under terminals that report focus (eg tmux) (#4788). * Variables that control background colors (such as fish_pager_color_search_match) can now use --reverse. Completions * Added completions for * aws * bat (#6052) * bosh (#5700) * btrfs * camcontrol * cf (#5700) * chronyc (#6496) * code (#6205) * cryptsetup (#6488) * csc and csi (#6016) * cwebp (#6034) * cygpath and cygstart (#6239) * epkginfo (#5829) * ffmpeg, ffplay, and ffprobe (#5922) * fsharpc and fsharpi (#6016) * fzf (#6178) * g++ (#6217) * gpg1 (#6139) * gpg2 (#6062) * grub-mkrescue (#6182) * hledger (#6043) * hwinfo (#6496) * irb (#6260) * iw (#6232) * kak * keepassxc-cli (#6505) * keybase (#6410) * loginctl (#6501) * lz4, lz4c and lz4cat (#6364) * mariner (#5718) * nethack (#6240) * patool (#6083) * phpunit (#6197) * plutil (#6301) * pzstd (#6364) * qubes-gpg-client (#6067) * resolvectl (#6501) * rg * rustup * sfdx (#6149) * speedtest and speedtest-cli (#5840) * src (#6026) * tokei (#6085) * tsc (#6016) * unlz4 (#6364) * unzstd (#6364) * vbc (#6016) * zpaq (#6245) * zstd, zstdcat, zstdgrep, zstdless and zstdmt (#6364) * Lots of improvements to completions. * Selecting short options which also have a long name from the completion pager is possible (#5634). * Tab completion will no longer add trailing spaces if they already exist (#6107). * Completion of subcommands to builtins like and or not now works correctly (#6249). * Completion of arguments to short options works correctly when multiple short options are used together (#332). * Activating completion in the middle of an invalid completion does not move the cursor any more, making it easier to fix a mistake (#4124). * Completion in empty commandlines now lists all available commands. * Functions listed as completions could previously leak parts of the function as other completions; this has been fixed. Deprecations and removed features * The vcs-prompt functions have been promoted to names without double-underscore, so __fish_git_prompt is now fish_git_prompt, __fish_vcs_prompt is now fish_vcs_prompt, __fish_hg_prompt is now fish_hg_prompt and __fish_svn_prompt is now fish_svn_prompt. Shims at the old names have been added, and the variables have kept their old names (#5586). * string replace has an additional round of escaping in the replacement expression, so escaping backslashes requires many escapes (eg string replace -ra '([ab])' '\\\\\\\$1' a). The new feature flag regex-easyesc can be used to disable this, so that the same effect can be achieved with string replace -ra '([ab])' '\\\\$1' a (#5556). As a reminder, the intention behind feature flags is that this will eventually become the default and then only option, so scripts should be updated. * The fish_vi_mode function, deprecated in fish 2.3, has been removed. Use fish_vi_key_bindings instead (#6372). For distributors and developers * fish 3.0 introduced a CMake-based build system. In fish 3.1, both the Autotools-based build and legacy Xcode build system have been removed, leaving only the CMake build system. All distributors and developers must install CMake. * fish now depends on the common tee external command, for the psub process substitution function. * The documentation is now built with Sphinx. The old Doxygen-based documentation system has been removed. Developers, and distributors who wish to rebuild the documentation, must install Sphinx. * The INTERNAL_WCWIDTH build option has been removed, as fish now always uses an internal wcwidth function. It has a number of configuration options that make it more suitable for general use (#5777). * mandoc can now be used to format the output from --help if nroff is not installed, reducing the number of external dependencies on systems with mandoc installed (#5489). * Some bugs preventing building on Solaris-derived systems such as Illumos were fixed (#5458, #5461, #5611). * Completions for npm, bower and yarn no longer require the jq utility for full functionality, but will use Python instead if it is available. * The paths for completions, functions and configuration snippets have been extended. On systems that define XDG_DATA_DIRS, each of the directories in this variable are searched in the subdirectories fish/vendor_completions.d, fish/vendor_functions.d, and fish/vendor_conf.d respectively. On systems that do not define this variable in the environment, the vendor directories are searched for in both the installation prefix and the default "extra" directory, which now defaults to /usr/local (#5029).
2020-02-18 23:00:49 +01:00
# $NetBSD: Makefile,v 1.22 2020/02/18 22:00:49 maya Exp $
fish: update to 3.1.0 From Jonathan Schleifer in PR pkg/54965, lightly changed by myself for netbsd support. fish 3.1.0 (released February 12, 2020) Compared to the beta release of fish 3.1b1, fish version 3.1.0: * fixes a regression where spaces after a brace were removed despite brace expansion not occurring (#6564) * fixes a number of problems in compiling and testing on Cygwin (#6549) and Solaris-derived systems such as Illumos (#6553, #6554, #6555, #6556, and #6558); * fixes the process for building macOS packages; * fixes a regression where excessive error messages are printed if Unicode characters are emitted in non-Unicode-capable locales (#6584); and * contains some improvements to the documentation and a small number of completions. If you are upgrading from version 3.0.0 or before, please also review the release notes for 3.1b1 (included below). Release notes for fish 3.1b1 (released January 26, 2020) Notable improvements and fixes * A new $pipestatus variable contains a list of exit statuses of the previous job, for each of the separate commands in a pipeline (#5632). * fish no longer buffers pipes to the last function in a pipeline, improving many cases where pipes appeared to block or hang (#1396). * An overhaul of error messages for builtin commands, including a removal of the overwhelming usage summary, more readable stack traces (#3404, #5434), and stack traces for test (aka [) (#5771). * fish's debugging arguments have been significantly improved. The --debug-level option has been removed, and a new --debug option replaces it. This option accepts various categories, which may be listed via fish --print-debug-categories (#5879). A new --debug-output option allows for redirection of debug output. * string has a new collect subcommand for use in command substitutions, producing a single output instead of splitting on new lines (similar to "$(cmd)" in other shells) (#159). * The fish manual, tutorial and FAQ are now available in man format as fish-doc, fish-tutorial and fish-faq respectively (#5521). * Like other shells, cd now always looks for its argument in the current directory as a last resort, even if the CDPATH variable does not include it or "." (#4484). * fish now correctly handles CDPATH entries that start with .. (#6220) or contain ./ (#5887). * The fish_trace variable may be set to trace execution (#3427). This performs a similar role as set -x in other shells. * fish uses the temporary directory determined by the system, rather than relying on /tmp (#3845). * The fish Web configuration tool (fish_config) prints a list of commands it is executing, to help understanding and debugging (#5584). * Major performance improvements when pasting (#5866), executing lots of commands (#5905), importing history from bash (#6295), and when completing variables that might match $history (#6288). Syntax changes and new commands * A new builtin command, time, which allows timing of fish functions and builtins as well as external commands (#117). * Brace expansion now only takes place if the braces include a "," or a variable expansion, meaning common commands such as git reset HEAD@{0} do not require escaping (#5869). * New redirections &> and &| may be used to redirect or pipe stdout, and also redirect stderr to stdout (#6192). * switch now allows arguments that expand to nothing, like empty variables (#5677). * The VAR=val cmd syntax can now be used to run a command in a modified environment (#6287). * and is no longer recognised as a command, so that nonsensical constructs like and and and produce a syntax error (#6089). * math's exponent operator, '^', was previously left-associative, but now uses the more commonly-used right-associative behaviour (#6280). This means that math '3^0.5^2' was previously calculated as '(3^0.5)^2', but is now calculated as '3^(0.5^2)'. * In fish 3.0, the variable used with for loops inside command substitutions could leak into enclosing scopes; this was an inadvertent behaviour change and has been reverted (#6480). Scripting improvements * string split0 now returns 0 if it split something (#5701). * In the interest of consistency, builtin -q and command -q can now be used to query if a builtin or command exists (#5631). * math now accepts --scale=max for the maximum scale (#5579). * builtin $var now works correctly, allowing a variable as the builtin name (#5639). * cd understands the -- argument to make it possible to change to directories starting with a hyphen (#6071). * complete --do-complete now also does fuzzy matches (#5467). * complete --do-complete can be used inside completions, allowing limited recursion (#3474). * count now also counts lines fed on standard input (#5744). * eval produces an exit status of 0 when given no arguments, like other shells (#5692). * printf prints what it can when input hasn't been fully converted to a number, but still prints an error (#5532). * complete -C foo now works as expected, rather than requiring complete -Cfoo. * complete has a new --force-files option, to re-enable file completions. This allows sudo -E and pacman -Qo to complete correctly (#5646). * argparse now defaults to showing the current function name (instead of argparse) in its errors, making --name often superfluous (#5835). * argparse has a new --ignore-unknown option to keep unrecognized options, allowing multiple argparse passes to parse options (#5367). * argparse correctly handles flag value validation of options that only have short names (#5864). * read -S (short option of --shell) is recognised correctly (#5660). * read understands --list, which acts like --array in reading all arguments into a list inside a single variable, but is better named (#5846). * read has a new option, --tokenize, which splits a string into variables according to the shell's tokenization rules, considering quoting, escaping, and so on (#3823). * read interacts more correctly with the deprecated $IFS variable, in particular removing multiple separators when splitting a variable into a list (#6406), matching other shells. * fish_indent now handles semicolons better, including leaving them in place for ; and and ; or instead of breaking the line (#5859). * fish_indent --write now supports multiple file arguments, indenting them in turn. * The default read limit has been increased to 100MiB (#5267). * math now also understands x for multiplication, provided it is followed by whitespace (#5906). * math reports the right error when incorrect syntax is used inside parentheses (#6063), and warns when unsupported logical operations are used (#6096). * functions --erase now also prevents fish from autoloading a function for the first time (#5951). * jobs --last returns 0 to indicate success when a job is found (#6104). * commandline -p and commandline -j now split on && and || in addition to ; and & (#6214). * A bug where string split would drop empty strings if the output was only empty strings has been fixed (#5987). * eval no long creates a new local variable scope, but affects variables in the scope it is called from (#4443). source still creates a new local scope. * abbr has a new --query option to check for the existence of an abbreviation. * Local values for fish_complete_path and fish_function_path are now ignored; only their global values are respected. * Syntax error reports now display a marker in the correct position (#5812). * Empty universal variables may now be exported (#5992). * Exported universal variables are no longer imported into the global scope, preventing shadowing. This makes it easier to change such variables for all fish sessions and avoids breakage when the value is a list of multiple elements (#5258). * A bug where for could use invalid variable names has been fixed (#5800). * A bug where local variables would not be exported to functions has been fixed (#6153). * The null command (:) now always exits successfully, rather than passing through the previous exit status (#6022). * The output of functions FUNCTION matches the declaration of the function, correctly including comments or blank lines (#5285), and correctly includes any --wraps flags (#1625). * type supports a new option, --short, which suppress function expansion (#6403). * type --path with a function argument will now output the path to the file containing the definition of that function, if it exists. * type --force-path with an argument that cannot be found now correctly outputs nothing, as documented (#6411). * The $hostname variable is no longer truncated to 32 characters (#5758). * Line numbers in function backtraces are calculated correctly (#6350). * A new fish_cancel event is emitted when the command line is cancelled, which is useful for terminal integration (#5973). Interactive improvements * New Base16 color options are available through the Web-based configuration (#6504). * fish only parses /etc/paths on macOS in login shells, matching the bash implementation (#5637) and avoiding changes to path ordering in child shells (#5456). It now ignores blank lines like the bash implementation (#5809). * The locale is now reloaded when the LOCPATH variable is changed (#5815). * read no longer keeps a history, making it suitable for operations that shouldn't end up there, like password entry (#5904). * dirh outputs its stack in the correct order (#5477), and behaves as documented when universal variables are used for its stack (#5797). * funced and the edit-commandline-in-buffer bindings did not work in fish 3.0 when the $EDITOR variable contained spaces; this has been corrected (#5625). * Builtins now pipe their help output to a pager automatically (#6227). * set_color now colors the --print-colors output in the matching colors if it is going to a terminal. * fish now underlines every valid entered path instead of just the last one (#5872). * When syntax highlighting a string with an unclosed quote, only the quote itself will be shown as an error, instead of the whole argument. * Syntax highlighting works correctly with variables as commands (#5658) and redirections to close file descriptors (#6092). * help works properly on Windows Subsytem for Linux (#5759, #6338). * A bug where disown could crash the shell has been fixed (#5720). * fish will not autosuggest files ending with ~ unless there are no other candidates, as these are generally backup files (#985). * Escape in the pager works correctly (#5818). * Key bindings that call fg no longer leave the terminal in a broken state (#2114). * Brackets (#5831) and filenames containing $ (#6060) are completed with appropriate escaping. * The output of complete and functions is now colorized in interactive terminals. * The Web-based configuration handles aliases that include single quotes correctly (#6120), and launches correctly under Termux (#6248) and OpenBSD (#6522). * function now correctly validates parameters for --argument-names as valid variable names (#6147) and correctly parses options following --argument-names, as in "--argument-names foo --description bar" (#6186). * History newly imported from bash includes command lines using && or ||. * The automatic generation of completions from manual pages is better described in job and process listings, and no longer produces a warning when exiting fish (#6269). * In private mode, setting $fish_greeting to an empty string before starting the private session will prevent the warning about history not being saved from being printed (#6299). * In the interactive editor, a line break (Enter) inside unclosed brackets will insert a new line, rather than executing the command and producing an error (#6316). * Ctrl-C always repaints the prompt (#6394). * When run interactively from another program (such as Python), fish will correctly start a new process group, like other shells (#5909). * Job identifiers (for example, for background jobs) are assigned more logically (#6053). * A bug where history would appear truncated if an empty command was executed was fixed (#6032). New or improved bindings * Pasting strips leading spaces to avoid pasted commands being omitted from the history (#4327). * Shift-Left and Shift-Right now default to moving backwards and forwards by one bigword (words separated by whitespace) (#1505). * The default escape delay (to differentiate between the escape key and an alt-combination) has been reduced to 30ms, down from 300ms for the default mode and 100ms for Vi mode (#3904). * The forward-bigword binding now interacts correctly with autosuggestions (#5336). * The fish_clipboard_* functions support Wayland by using [wl-clipboard](https://github.com/bugaevc/wl-clipboard) (#5450). * The nextd and prevd functions no longer print "Hit end of history", instead using a bell. They correctly store working directories containing symbolic links (#6395). * If a fish_mode_prompt function exists, Vi mode will only execute it on mode-switch instead of the entire prompt. This should make it much more responsive with slow prompts (#5783). * The path-component bindings (like Ctrl-w) now also stop at ":" and "@", because those are used to denote user and host in commands such as ssh (#5841). * The NULL character can now be bound via bind -k nul. Terminals often generate this character via control-space. (#3189). * A new readline command expand-abbr can be used to trigger abbreviation expansion (#5762). * A new readline command, delete-or-exit, removes a character to the right of the cursor or exits the shell if the command line is empty (moving this functionality out of the delete-or-exit function). * The self-insert readline command will now insert the binding sequence, if not empty. * A new binding to prepend sudo, bound to Alt-S by default (#6140). * The Alt-W binding to describe a command should now work better with multiline prompts (#6110) * The Alt-H binding to open a command's man page now tries to ignore sudo (#6122). * A new pair of bind functions, history-prefix-search-backward (and forward), was introduced (#6143). * Vi mode now supports R to enter replace mode (#6342), and d0 to delete the current line (#6292). * In Vi mode, hitting Enter in replace-one mode no longer erases the prompt (#6298). * Selections in Vi mode are inclusive, matching the actual behaviour of Vi (#5770). Improved prompts * The Git prompt in informative mode now shows the number of stashes if enabled. * The Git prompt now has an option ($__fish_git_prompt_use_informative_chars) to use the (more modern) informative characters without enabling informative mode. * The default prompt now also features VCS integration and will color the host if running via SSH (#6375). * The default and example prompts print the pipe status if an earlier command in the pipe fails. * The default and example prompts try to resolve exit statuses to signal names when appropriate. Improved terminal output * New fish_pager_color_ options have been added to control more elements of the pager's colors (#5524). * Better detection and support for using fish from various system consoles, where limited colors and special characters are supported (#5552). * fish now tries to guess if the system supports Unicode 9 (and displays emoji as wide), eliminating the need to set $fish_emoji_width in most cases (#5722). * Improvements to the display of wide characters, particularly Korean characters and emoji (#5583, #5729). * The Vi mode cursor is correctly redrawn when regaining focus under terminals that report focus (eg tmux) (#4788). * Variables that control background colors (such as fish_pager_color_search_match) can now use --reverse. Completions * Added completions for * aws * bat (#6052) * bosh (#5700) * btrfs * camcontrol * cf (#5700) * chronyc (#6496) * code (#6205) * cryptsetup (#6488) * csc and csi (#6016) * cwebp (#6034) * cygpath and cygstart (#6239) * epkginfo (#5829) * ffmpeg, ffplay, and ffprobe (#5922) * fsharpc and fsharpi (#6016) * fzf (#6178) * g++ (#6217) * gpg1 (#6139) * gpg2 (#6062) * grub-mkrescue (#6182) * hledger (#6043) * hwinfo (#6496) * irb (#6260) * iw (#6232) * kak * keepassxc-cli (#6505) * keybase (#6410) * loginctl (#6501) * lz4, lz4c and lz4cat (#6364) * mariner (#5718) * nethack (#6240) * patool (#6083) * phpunit (#6197) * plutil (#6301) * pzstd (#6364) * qubes-gpg-client (#6067) * resolvectl (#6501) * rg * rustup * sfdx (#6149) * speedtest and speedtest-cli (#5840) * src (#6026) * tokei (#6085) * tsc (#6016) * unlz4 (#6364) * unzstd (#6364) * vbc (#6016) * zpaq (#6245) * zstd, zstdcat, zstdgrep, zstdless and zstdmt (#6364) * Lots of improvements to completions. * Selecting short options which also have a long name from the completion pager is possible (#5634). * Tab completion will no longer add trailing spaces if they already exist (#6107). * Completion of subcommands to builtins like and or not now works correctly (#6249). * Completion of arguments to short options works correctly when multiple short options are used together (#332). * Activating completion in the middle of an invalid completion does not move the cursor any more, making it easier to fix a mistake (#4124). * Completion in empty commandlines now lists all available commands. * Functions listed as completions could previously leak parts of the function as other completions; this has been fixed. Deprecations and removed features * The vcs-prompt functions have been promoted to names without double-underscore, so __fish_git_prompt is now fish_git_prompt, __fish_vcs_prompt is now fish_vcs_prompt, __fish_hg_prompt is now fish_hg_prompt and __fish_svn_prompt is now fish_svn_prompt. Shims at the old names have been added, and the variables have kept their old names (#5586). * string replace has an additional round of escaping in the replacement expression, so escaping backslashes requires many escapes (eg string replace -ra '([ab])' '\\\\\\\$1' a). The new feature flag regex-easyesc can be used to disable this, so that the same effect can be achieved with string replace -ra '([ab])' '\\\\$1' a (#5556). As a reminder, the intention behind feature flags is that this will eventually become the default and then only option, so scripts should be updated. * The fish_vi_mode function, deprecated in fish 2.3, has been removed. Use fish_vi_key_bindings instead (#6372). For distributors and developers * fish 3.0 introduced a CMake-based build system. In fish 3.1, both the Autotools-based build and legacy Xcode build system have been removed, leaving only the CMake build system. All distributors and developers must install CMake. * fish now depends on the common tee external command, for the psub process substitution function. * The documentation is now built with Sphinx. The old Doxygen-based documentation system has been removed. Developers, and distributors who wish to rebuild the documentation, must install Sphinx. * The INTERNAL_WCWIDTH build option has been removed, as fish now always uses an internal wcwidth function. It has a number of configuration options that make it more suitable for general use (#5777). * mandoc can now be used to format the output from --help if nroff is not installed, reducing the number of external dependencies on systems with mandoc installed (#5489). * Some bugs preventing building on Solaris-derived systems such as Illumos were fixed (#5458, #5461, #5611). * Completions for npm, bower and yarn no longer require the jq utility for full functionality, but will use Python instead if it is available. * The paths for completions, functions and configuration snippets have been extended. On systems that define XDG_DATA_DIRS, each of the directories in this variable are searched in the subdirectories fish/vendor_completions.d, fish/vendor_functions.d, and fish/vendor_conf.d respectively. On systems that do not define this variable in the environment, the vendor directories are searched for in both the installation prefix and the default "extra" directory, which now defaults to /usr/local (#5029).
2020-02-18 23:00:49 +01:00
DISTNAME= fish-3.1.0
CATEGORIES= shells
fish: update to 2.7.1 pkgsrc changes: add doxygen dependency for building docs. this is unusual as doxygen is heavy, but fish is meant to be beginner-friendly shell, so documentation is important. remove now unneeded patch, that getcwd is called with a size argument now. # fish 2.7.1 (released December 23, 2017) This release of fish fixes an issue where iTerm 2 on macOS would display a warning about paste bracketing being left on when starting a new fish session (#4521). If you are upgrading from version 2.6.0 or before, please also review the release notes for 2.7.0 and 2.7b1 (included below). -- # fish 2.7.0 (released November 23, 2017) There are no major changes between 2.7b1 and 2.7.0. If you are upgrading from version 2.6.0 or before, please also review the release notes for 2.7b1 (included below). Xcode builds and macOS packages could not be produced with 2.7b1, but this is fixed in 2.7.0. -- # fish 2.7b1 (released October 31, 2017) ## Notable improvements - A new `cdh` (change directory using recent history) command provides a more friendly alternative to prevd/nextd and pushd/popd (#2847). - A new `argparse` command is available to allow fish script to parse arguments with the same behavior as builtin commands. This also includes the `fish_opt` helper command. (#4190). - Invalid array indexes are now silently ignored (#826, #4127). - Improvements to the debugging facility, including a prompt specific to the debugger (`fish_breakpoint_prompt`) and a `status is-breakpoint` subcommand (#1310). - `string` supports new `lower` and `upper` subcommands, for altering the case of strings (#4080). The case changing is not locale-aware yet. - `string escape` has a new `--style=xxx` flag where `xxx` can be `script`, `var`, or `url` (#4150), and can be reversed with `string unescape` (#3543). - History can now be split into sessions with the `fish_history` variable, or not saved to disk at all (#102). - Read history is now controlled by the `fish_history` variable rather than the `--mode-name` flag (#1504). - `command` now supports an `--all` flag to report all directories with the command. `which` is no longer a runtime dependency (#2778). - fish can run commands before starting an interactive session using the new `--init-command`/`-C` options (#4164). - `set` has a new `--show` option to show lots of information about variables (#4265). ## Other significant changes - The `COLUMNS` and `LINES` environment variables are now correctly set the first time `fish_prompt` is run (#4141). - `complete`'s `--no-files` option works as intended (#112). - `echo -h` now correctly echoes `-h` in line with other shells (#4120). - The `export` compatibility function now returns zero on success, rather than always returning 1 (#4435). - Stop converting empty elements in MANPATH to "." (#4158). The behavior being changed was introduced in fish 2.6.0. - `count -h` and `count --help` now return 1 rather than produce command help output (#4189). - An attempt to `read` which stops because too much data is available still defines the variables given as parameters (#4180). - A regression in fish 2.4.0 which prevented `pushd +1` from working has been fixed (#4091). - A regression in fish 2.6.0 where multiple `read` commands in non-interactive scripts were broken has been fixed (#4206). - A regression in fish 2.6.0 involving universal variables with side-effects at startup such as `set -U fish_escape_delay_ms 10` has been fixed (#4196). - Added completions for: - `as` (#4130) - `cdh` (#2847) - `dhcpd` (#4115) - `ezjail-admin` (#4324) - Fabric's `fab` (#4153) - `grub-file` (#4119) - `grub-install` (#4119) - `jest` (#4142) - `kdeconnect-cli` - `magneto` (#4043, #4108) - `mdadm` (#4198) - `passwd` (#4209) - `pip` and `pipenv` (#4448) - `s3cmd` (#4332) - `sbt` (#4347) - `snap` (#4215) - Sublime Text 3's `subl` (#4277) - Lots of improvements to completions. - Updated Chinese and French translations.
2017-12-30 06:35:54 +01:00
MASTER_SITES= ${MASTER_SITE_GITHUB:=fish-shell/}
GITHUB_PROJECT= fish-shell
fish: update to 3.1.0 From Jonathan Schleifer in PR pkg/54965, lightly changed by myself for netbsd support. fish 3.1.0 (released February 12, 2020) Compared to the beta release of fish 3.1b1, fish version 3.1.0: * fixes a regression where spaces after a brace were removed despite brace expansion not occurring (#6564) * fixes a number of problems in compiling and testing on Cygwin (#6549) and Solaris-derived systems such as Illumos (#6553, #6554, #6555, #6556, and #6558); * fixes the process for building macOS packages; * fixes a regression where excessive error messages are printed if Unicode characters are emitted in non-Unicode-capable locales (#6584); and * contains some improvements to the documentation and a small number of completions. If you are upgrading from version 3.0.0 or before, please also review the release notes for 3.1b1 (included below). Release notes for fish 3.1b1 (released January 26, 2020) Notable improvements and fixes * A new $pipestatus variable contains a list of exit statuses of the previous job, for each of the separate commands in a pipeline (#5632). * fish no longer buffers pipes to the last function in a pipeline, improving many cases where pipes appeared to block or hang (#1396). * An overhaul of error messages for builtin commands, including a removal of the overwhelming usage summary, more readable stack traces (#3404, #5434), and stack traces for test (aka [) (#5771). * fish's debugging arguments have been significantly improved. The --debug-level option has been removed, and a new --debug option replaces it. This option accepts various categories, which may be listed via fish --print-debug-categories (#5879). A new --debug-output option allows for redirection of debug output. * string has a new collect subcommand for use in command substitutions, producing a single output instead of splitting on new lines (similar to "$(cmd)" in other shells) (#159). * The fish manual, tutorial and FAQ are now available in man format as fish-doc, fish-tutorial and fish-faq respectively (#5521). * Like other shells, cd now always looks for its argument in the current directory as a last resort, even if the CDPATH variable does not include it or "." (#4484). * fish now correctly handles CDPATH entries that start with .. (#6220) or contain ./ (#5887). * The fish_trace variable may be set to trace execution (#3427). This performs a similar role as set -x in other shells. * fish uses the temporary directory determined by the system, rather than relying on /tmp (#3845). * The fish Web configuration tool (fish_config) prints a list of commands it is executing, to help understanding and debugging (#5584). * Major performance improvements when pasting (#5866), executing lots of commands (#5905), importing history from bash (#6295), and when completing variables that might match $history (#6288). Syntax changes and new commands * A new builtin command, time, which allows timing of fish functions and builtins as well as external commands (#117). * Brace expansion now only takes place if the braces include a "," or a variable expansion, meaning common commands such as git reset HEAD@{0} do not require escaping (#5869). * New redirections &> and &| may be used to redirect or pipe stdout, and also redirect stderr to stdout (#6192). * switch now allows arguments that expand to nothing, like empty variables (#5677). * The VAR=val cmd syntax can now be used to run a command in a modified environment (#6287). * and is no longer recognised as a command, so that nonsensical constructs like and and and produce a syntax error (#6089). * math's exponent operator, '^', was previously left-associative, but now uses the more commonly-used right-associative behaviour (#6280). This means that math '3^0.5^2' was previously calculated as '(3^0.5)^2', but is now calculated as '3^(0.5^2)'. * In fish 3.0, the variable used with for loops inside command substitutions could leak into enclosing scopes; this was an inadvertent behaviour change and has been reverted (#6480). Scripting improvements * string split0 now returns 0 if it split something (#5701). * In the interest of consistency, builtin -q and command -q can now be used to query if a builtin or command exists (#5631). * math now accepts --scale=max for the maximum scale (#5579). * builtin $var now works correctly, allowing a variable as the builtin name (#5639). * cd understands the -- argument to make it possible to change to directories starting with a hyphen (#6071). * complete --do-complete now also does fuzzy matches (#5467). * complete --do-complete can be used inside completions, allowing limited recursion (#3474). * count now also counts lines fed on standard input (#5744). * eval produces an exit status of 0 when given no arguments, like other shells (#5692). * printf prints what it can when input hasn't been fully converted to a number, but still prints an error (#5532). * complete -C foo now works as expected, rather than requiring complete -Cfoo. * complete has a new --force-files option, to re-enable file completions. This allows sudo -E and pacman -Qo to complete correctly (#5646). * argparse now defaults to showing the current function name (instead of argparse) in its errors, making --name often superfluous (#5835). * argparse has a new --ignore-unknown option to keep unrecognized options, allowing multiple argparse passes to parse options (#5367). * argparse correctly handles flag value validation of options that only have short names (#5864). * read -S (short option of --shell) is recognised correctly (#5660). * read understands --list, which acts like --array in reading all arguments into a list inside a single variable, but is better named (#5846). * read has a new option, --tokenize, which splits a string into variables according to the shell's tokenization rules, considering quoting, escaping, and so on (#3823). * read interacts more correctly with the deprecated $IFS variable, in particular removing multiple separators when splitting a variable into a list (#6406), matching other shells. * fish_indent now handles semicolons better, including leaving them in place for ; and and ; or instead of breaking the line (#5859). * fish_indent --write now supports multiple file arguments, indenting them in turn. * The default read limit has been increased to 100MiB (#5267). * math now also understands x for multiplication, provided it is followed by whitespace (#5906). * math reports the right error when incorrect syntax is used inside parentheses (#6063), and warns when unsupported logical operations are used (#6096). * functions --erase now also prevents fish from autoloading a function for the first time (#5951). * jobs --last returns 0 to indicate success when a job is found (#6104). * commandline -p and commandline -j now split on && and || in addition to ; and & (#6214). * A bug where string split would drop empty strings if the output was only empty strings has been fixed (#5987). * eval no long creates a new local variable scope, but affects variables in the scope it is called from (#4443). source still creates a new local scope. * abbr has a new --query option to check for the existence of an abbreviation. * Local values for fish_complete_path and fish_function_path are now ignored; only their global values are respected. * Syntax error reports now display a marker in the correct position (#5812). * Empty universal variables may now be exported (#5992). * Exported universal variables are no longer imported into the global scope, preventing shadowing. This makes it easier to change such variables for all fish sessions and avoids breakage when the value is a list of multiple elements (#5258). * A bug where for could use invalid variable names has been fixed (#5800). * A bug where local variables would not be exported to functions has been fixed (#6153). * The null command (:) now always exits successfully, rather than passing through the previous exit status (#6022). * The output of functions FUNCTION matches the declaration of the function, correctly including comments or blank lines (#5285), and correctly includes any --wraps flags (#1625). * type supports a new option, --short, which suppress function expansion (#6403). * type --path with a function argument will now output the path to the file containing the definition of that function, if it exists. * type --force-path with an argument that cannot be found now correctly outputs nothing, as documented (#6411). * The $hostname variable is no longer truncated to 32 characters (#5758). * Line numbers in function backtraces are calculated correctly (#6350). * A new fish_cancel event is emitted when the command line is cancelled, which is useful for terminal integration (#5973). Interactive improvements * New Base16 color options are available through the Web-based configuration (#6504). * fish only parses /etc/paths on macOS in login shells, matching the bash implementation (#5637) and avoiding changes to path ordering in child shells (#5456). It now ignores blank lines like the bash implementation (#5809). * The locale is now reloaded when the LOCPATH variable is changed (#5815). * read no longer keeps a history, making it suitable for operations that shouldn't end up there, like password entry (#5904). * dirh outputs its stack in the correct order (#5477), and behaves as documented when universal variables are used for its stack (#5797). * funced and the edit-commandline-in-buffer bindings did not work in fish 3.0 when the $EDITOR variable contained spaces; this has been corrected (#5625). * Builtins now pipe their help output to a pager automatically (#6227). * set_color now colors the --print-colors output in the matching colors if it is going to a terminal. * fish now underlines every valid entered path instead of just the last one (#5872). * When syntax highlighting a string with an unclosed quote, only the quote itself will be shown as an error, instead of the whole argument. * Syntax highlighting works correctly with variables as commands (#5658) and redirections to close file descriptors (#6092). * help works properly on Windows Subsytem for Linux (#5759, #6338). * A bug where disown could crash the shell has been fixed (#5720). * fish will not autosuggest files ending with ~ unless there are no other candidates, as these are generally backup files (#985). * Escape in the pager works correctly (#5818). * Key bindings that call fg no longer leave the terminal in a broken state (#2114). * Brackets (#5831) and filenames containing $ (#6060) are completed with appropriate escaping. * The output of complete and functions is now colorized in interactive terminals. * The Web-based configuration handles aliases that include single quotes correctly (#6120), and launches correctly under Termux (#6248) and OpenBSD (#6522). * function now correctly validates parameters for --argument-names as valid variable names (#6147) and correctly parses options following --argument-names, as in "--argument-names foo --description bar" (#6186). * History newly imported from bash includes command lines using && or ||. * The automatic generation of completions from manual pages is better described in job and process listings, and no longer produces a warning when exiting fish (#6269). * In private mode, setting $fish_greeting to an empty string before starting the private session will prevent the warning about history not being saved from being printed (#6299). * In the interactive editor, a line break (Enter) inside unclosed brackets will insert a new line, rather than executing the command and producing an error (#6316). * Ctrl-C always repaints the prompt (#6394). * When run interactively from another program (such as Python), fish will correctly start a new process group, like other shells (#5909). * Job identifiers (for example, for background jobs) are assigned more logically (#6053). * A bug where history would appear truncated if an empty command was executed was fixed (#6032). New or improved bindings * Pasting strips leading spaces to avoid pasted commands being omitted from the history (#4327). * Shift-Left and Shift-Right now default to moving backwards and forwards by one bigword (words separated by whitespace) (#1505). * The default escape delay (to differentiate between the escape key and an alt-combination) has been reduced to 30ms, down from 300ms for the default mode and 100ms for Vi mode (#3904). * The forward-bigword binding now interacts correctly with autosuggestions (#5336). * The fish_clipboard_* functions support Wayland by using [wl-clipboard](https://github.com/bugaevc/wl-clipboard) (#5450). * The nextd and prevd functions no longer print "Hit end of history", instead using a bell. They correctly store working directories containing symbolic links (#6395). * If a fish_mode_prompt function exists, Vi mode will only execute it on mode-switch instead of the entire prompt. This should make it much more responsive with slow prompts (#5783). * The path-component bindings (like Ctrl-w) now also stop at ":" and "@", because those are used to denote user and host in commands such as ssh (#5841). * The NULL character can now be bound via bind -k nul. Terminals often generate this character via control-space. (#3189). * A new readline command expand-abbr can be used to trigger abbreviation expansion (#5762). * A new readline command, delete-or-exit, removes a character to the right of the cursor or exits the shell if the command line is empty (moving this functionality out of the delete-or-exit function). * The self-insert readline command will now insert the binding sequence, if not empty. * A new binding to prepend sudo, bound to Alt-S by default (#6140). * The Alt-W binding to describe a command should now work better with multiline prompts (#6110) * The Alt-H binding to open a command's man page now tries to ignore sudo (#6122). * A new pair of bind functions, history-prefix-search-backward (and forward), was introduced (#6143). * Vi mode now supports R to enter replace mode (#6342), and d0 to delete the current line (#6292). * In Vi mode, hitting Enter in replace-one mode no longer erases the prompt (#6298). * Selections in Vi mode are inclusive, matching the actual behaviour of Vi (#5770). Improved prompts * The Git prompt in informative mode now shows the number of stashes if enabled. * The Git prompt now has an option ($__fish_git_prompt_use_informative_chars) to use the (more modern) informative characters without enabling informative mode. * The default prompt now also features VCS integration and will color the host if running via SSH (#6375). * The default and example prompts print the pipe status if an earlier command in the pipe fails. * The default and example prompts try to resolve exit statuses to signal names when appropriate. Improved terminal output * New fish_pager_color_ options have been added to control more elements of the pager's colors (#5524). * Better detection and support for using fish from various system consoles, where limited colors and special characters are supported (#5552). * fish now tries to guess if the system supports Unicode 9 (and displays emoji as wide), eliminating the need to set $fish_emoji_width in most cases (#5722). * Improvements to the display of wide characters, particularly Korean characters and emoji (#5583, #5729). * The Vi mode cursor is correctly redrawn when regaining focus under terminals that report focus (eg tmux) (#4788). * Variables that control background colors (such as fish_pager_color_search_match) can now use --reverse. Completions * Added completions for * aws * bat (#6052) * bosh (#5700) * btrfs * camcontrol * cf (#5700) * chronyc (#6496) * code (#6205) * cryptsetup (#6488) * csc and csi (#6016) * cwebp (#6034) * cygpath and cygstart (#6239) * epkginfo (#5829) * ffmpeg, ffplay, and ffprobe (#5922) * fsharpc and fsharpi (#6016) * fzf (#6178) * g++ (#6217) * gpg1 (#6139) * gpg2 (#6062) * grub-mkrescue (#6182) * hledger (#6043) * hwinfo (#6496) * irb (#6260) * iw (#6232) * kak * keepassxc-cli (#6505) * keybase (#6410) * loginctl (#6501) * lz4, lz4c and lz4cat (#6364) * mariner (#5718) * nethack (#6240) * patool (#6083) * phpunit (#6197) * plutil (#6301) * pzstd (#6364) * qubes-gpg-client (#6067) * resolvectl (#6501) * rg * rustup * sfdx (#6149) * speedtest and speedtest-cli (#5840) * src (#6026) * tokei (#6085) * tsc (#6016) * unlz4 (#6364) * unzstd (#6364) * vbc (#6016) * zpaq (#6245) * zstd, zstdcat, zstdgrep, zstdless and zstdmt (#6364) * Lots of improvements to completions. * Selecting short options which also have a long name from the completion pager is possible (#5634). * Tab completion will no longer add trailing spaces if they already exist (#6107). * Completion of subcommands to builtins like and or not now works correctly (#6249). * Completion of arguments to short options works correctly when multiple short options are used together (#332). * Activating completion in the middle of an invalid completion does not move the cursor any more, making it easier to fix a mistake (#4124). * Completion in empty commandlines now lists all available commands. * Functions listed as completions could previously leak parts of the function as other completions; this has been fixed. Deprecations and removed features * The vcs-prompt functions have been promoted to names without double-underscore, so __fish_git_prompt is now fish_git_prompt, __fish_vcs_prompt is now fish_vcs_prompt, __fish_hg_prompt is now fish_hg_prompt and __fish_svn_prompt is now fish_svn_prompt. Shims at the old names have been added, and the variables have kept their old names (#5586). * string replace has an additional round of escaping in the replacement expression, so escaping backslashes requires many escapes (eg string replace -ra '([ab])' '\\\\\\\$1' a). The new feature flag regex-easyesc can be used to disable this, so that the same effect can be achieved with string replace -ra '([ab])' '\\\\$1' a (#5556). As a reminder, the intention behind feature flags is that this will eventually become the default and then only option, so scripts should be updated. * The fish_vi_mode function, deprecated in fish 2.3, has been removed. Use fish_vi_key_bindings instead (#6372). For distributors and developers * fish 3.0 introduced a CMake-based build system. In fish 3.1, both the Autotools-based build and legacy Xcode build system have been removed, leaving only the CMake build system. All distributors and developers must install CMake. * fish now depends on the common tee external command, for the psub process substitution function. * The documentation is now built with Sphinx. The old Doxygen-based documentation system has been removed. Developers, and distributors who wish to rebuild the documentation, must install Sphinx. * The INTERNAL_WCWIDTH build option has been removed, as fish now always uses an internal wcwidth function. It has a number of configuration options that make it more suitable for general use (#5777). * mandoc can now be used to format the output from --help if nroff is not installed, reducing the number of external dependencies on systems with mandoc installed (#5489). * Some bugs preventing building on Solaris-derived systems such as Illumos were fixed (#5458, #5461, #5611). * Completions for npm, bower and yarn no longer require the jq utility for full functionality, but will use Python instead if it is available. * The paths for completions, functions and configuration snippets have been extended. On systems that define XDG_DATA_DIRS, each of the directories in this variable are searched in the subdirectories fish/vendor_completions.d, fish/vendor_functions.d, and fish/vendor_conf.d respectively. On systems that do not define this variable in the environment, the vendor directories are searched for in both the installation prefix and the default "extra" directory, which now defaults to /usr/local (#5029).
2020-02-18 23:00:49 +01:00
GITHUB_RELEASE= 3.1.0
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.fishshell.com/
COMMENT= User friendly command line shell for UNIX-like operating systems
LICENSE= gnu-gpl-v2
Update to 2.5.0 Reviewed by: joerg@ Upstream changes: Release Notes for fish 2.5.0 (released February 3, 2017) The Home, End, Insert, Delete, Page Up and Page Down keys work in Vi-style key bindings (#3731). Platform Changes Starting with version 2.5, fish requires a more up-to-date version of C++, specifically C++11 (from 2011). This affects some older platforms: Linux For users building from source, GCC's g++ 4.8 or later, or LLVM's clang 3.3 or later, are known to work. Older platforms may require a newer compiler installed. Unfortunately, because of the complexity of the toolchain, binary packages are no longer published by the fish-shell developers for the following platforms: Red Hat Enterprise Linux and CentOS 5 & 6 for 64-bit builds Ubuntu 12.04 (EoLTS April 2017) Debian 7 (EoLTS May 2018) Installing newer version of fish on these systems will require building from source. OS X SnowLeopard Starting with version 2.5, fish requires a C++11 standard library on OS X 10.6 ("SnowLeopard"). If this library is not installed, you will see this error: dyld: Library not loaded: /usr/lib/libc++.1.dylib MacPorts is the easiest way to obtain this library. After installing the SnowLeopard MacPorts release from the install page, run: sudo port -v install libcxx Now fish should launch successfully. (Please open an issue if it does not.) This is only necessary on 10.6. OS X 10.7 and later include the required library by default. Other significant changes Attempting to exit with running processes in the background produces a warning, then signals them to terminate if a second attempt to exit is made. This brings the behaviour for running background processes into line with stopped processes. (#3497) random can now have start, stop and step values specified, or the new choice subcommand can be used to pick an argument from a list (#3619). A new key bindings preset, fish_hybrid_key_bindings, including all the Emacs-style and Vi-style bindings, which behaves like fish_vi_key_bindings in fish 2.3.0 (#3556). function now returns an error when called with invalid options, rather than defining the function anyway (#3574). This was a regression present in fish 2.3 and 2.4.0. fish no longer prints a warning when it identifies a running instance of an old version (2.1.0 and earlier). Changes to universal variables may not propagate between these old versions and 2.5b1. Improved compatiblity with Android (#3585), MSYS/mingw (#2360), Solaris (#3456, #3340) Like other shells, the test builting now returns an error for numeric operations on invalid integers (#3346, #3581). complete no longer recognises --authoritative and --unauthoritative options, and they are marked as obsolete. status accepts subcommands, and should be used like status is-interactive. The old options continue to be supported for the foreseeable future (#3526), although only one subcommand or option can be specified at a time. Selection mode (used with "begin-selection") no longer selects a character the cursor does not move over (#3684). List indexes are handled better, and a bit more liberally in some cases (echo $PATH[1 .. 3] is now valid) (#3579). The fish_mode_prompt function is now simply a stub around fish_default_mode_prompt, which allows the mode prompt to be included more easily in customised prompt functions (#3641). Notable fixes and improvements alias, run without options or arguments, lists all defined aliases, and aliases now include a description in the function signature that identifies them. complete accepts empty strings as descriptions (#3557). command accepts -q/--quiet in combination with --search (#3591), providing a simple way of checking whether a command exists in scripts. Abbreviations can now be renamed with abbr --rename OLD_KEY NEW_KEY (#3610). The command synopses printed by --help options work better with copying and pasting (#2673). help launches the browser specified by the $fish_help_browser variable if it is set (#3131). History merging could lose items under certain circumstances and is now fixed (#3496). The $status variable is now set to 123 when a syntactically invalid command is entered (#3616). Exiting fish now signals all background processes to terminate, not just stopped jobs (#3497). A new prompt_hostname function which prints a hostname suitable for use in prompts (#3482). The __fish_man_page function (bound to Alt-h by default) now tries to recognize subcommands (e.g. git add will now open the "git-add" man page) (#3678). A new function edit_command_buffer (bound to Alt-e & Alt-v by default) to edit the command buffer in an external editor (#1215, #3627). set_color now supports italics (--italics), dim (--dim) and reverse (--reverse) modes (#3650). Filesystems with very slow locking (eg incorrectly-configured NFS) will no longer slow fish down (#685). Improved completions for apt (#3695), fusermount (#3642), make (#3628), netctl-auto (#3378), nmcli (#3648), pygmentize (#3378), and tar (#3719). Added completions for: VBoxHeadless (#3378) VBoxSDL (#3378) base64 (#3378) caffeinate (#3524) dconf (#3638) dig (#3495) dpkg-reconfigure (#3521 & #3522) feh (#3378) launchctl (#3682) lxc (#3554 & #3564), mddiagnose (#3524) mdfind (#3524) mdimport (#3524) mdls (#3524) mdutil (#3524) mkvextract (#3492) nvram (#3524) objdump (#3378) sysbench (#3491) tmutil (#3524) Release Notes for fish 2.4.0 (released November 8, 2016) Significant changes The clipboard integration has been revamped with explicit bindings. The killring commands no longer copy from, or paste to, the X11 clipboard - use the new copy (C-x) and paste (C-v) bindings instead. The clipboard is now available on OS X as well as systems using X11 (e.g. Linux). (#3061) history uses subcommands (history delete) rather than options (history --delete) for its actions (#3367). You can no longer specify multiple actions via flags (e.g., history --delete --save something). New history options have been added, including --max=n to limit the number of history entries, --show-time option to show timestamps (#3175, #3244), and --null to null terminate history entries in the search output. history search is now case-insensitive by default (which also affects history delete) (#3236). history delete now correctly handles multiline commands (#31). Vi-style bindings no longer include all of the default emacs-style bindings; instead, they share some definitions (#3068). If there is no locale set in the environment, various known system configuration files will be checked for a default. If no locale can be found, en_US-UTF.8 will be used (#277). A number followed by a caret (e.g. 5^) is no longer treated as a redirection (#1873). The $version special variable can be overwritten, so that it can be used for other purposes if required. Notable fixes and improvements The fish_realpath builtin has been renamed to realpath and made compatible with GNU realpath when run without arguments (#3400). It is used only for systems without a realpath or grealpath utility (#3374). Improved color handling on terminals/consoles with 8-16 colors, particularly the use of bright named color (#3176, #3260). fish_indent can now read from files given as arguments, rather than just standard input (#3037). Fuzzy tab completions behave in a less surprising manner (#3090, #3211). jobs should only print its header line once (#3127). Wildcards in redirections are highlighted appropriately (#2789). Suggestions will be offered more often, like after removing characters (#3069). history --merge now correctly interleaves items in chronological order (#2312). Options for fish_indent have been aligned with the other binaries - in particular, -d now means --debug. The --dump option has been renamed to --dump-parse-tree (#3191). The display of bindings in the Web-based configuration has been greatly improved (#3325), as has the rendering of prompts (#2924). fish should no longer hang using 100% CPU in the C locale (#3214). A bug in FreeBSD 11 & 12, Dragonfly BSD & illumos prevented fish from working correctly on these platforms under UTF-8 locales; fish now avoids the buggy behaviour (#3050). Prompts which show git repository information (via __fish_git_prompt) are faster in large repositories (#3294) and slow filesystems (#3083). fish 2.3.0 reintroduced a problem where the greeting was printed even when using read; this has been corrected again (#3261). Vi mode changes the cursor depending on the current mode (#3215). Command lines with escaped space characters at the end tab-complete correctly (#2447). Added completions for: arcanist (#3256) connmanctl (#3419) figlet (#3378) mdbook (#3378) ninja (#3415) p4, the Perforce client (#3314) pygmentize (#3378) ranger (#3378) Improved completions for aura (#3297), abbr (#3267), brew (#3309), chown (#3380, #3383),cygport (#3392), git (#3274, #3226, #3225, #3094, #3087, #3035, #3021, #2982, #3230), kill & pkill (#3200), screen (#3271), wget (#3470), and xz (#3378). Distributors, packagers and developers will notice that the build process produces more succinct output by default; use make V=1 to get verbose output (#3248). Improved compatibility with minor platforms including musl (#2988), Cygwin (#2993), Android (#3441, #3442), Haiku (#3322) and Solaris. Automatic cursor changes are now only enabled on the subset of XTerm versions known to support them, resolving a problem where older versions printed garbage to the terminal before and after every prompt (#3499). Improved the title set in Apple Terminal.app. Added completions for defaults and improved completions for diskutil (#3478). Release Notes for fish 2.3.1 (released July 3, 2016) This is a functionality and bugfix release. This release does not contain all the changes to fish since the last release, but fixes a number of issues directly affecting users at present and includes a small number of new features. Significant changes A new fish_key_reader binary for decoding interactive keypresses (#2991). fish_mode_prompt has been updated to reflect the changes in the way the Vi input mode is set up (#3067), making this more reliable. fish_config can now properly be launched from the OS X app bundle (#3140). Notable fixes and improvements Extra lines were sometimes inserted into the output under Windows (Cygwin and Microsoft Windows Subsystem for Linux) due to TTY timestamps not being updated (#2859). The string builtin's match mode now handles the combination of -rnv (match, invert and count) correctly (#3098). Improvements to TTY special character handling (#3064), locale handling (#3124) and terminal environment variable handling (#3060). Work towards handling the terminal modes for external commands launched from initialisation files (#2980). Ease the upgrade path from fish 2.2.0 and before by warning users to restart fish if the string builtin is not available (#3057). type -a now syntax-colorizes function source output. Added completions for alsamixer, godoc, gofmt, goimports, gorename, lscpu, mkdir, modinfo, netctl-auto, poweroff, termite, udisksctl and xz (#3123). Improved completions for apt (#3097), aura (#3102),git (#3114), npm (#3158), string and suspend (#3154). Release Notes for fish 2.3.0 (released May 20, 2016) Significant Changes A new string builtin to handle… strings! This builtin will measure, split, search and replace text strings, including using regular expressions. It can also be used to turn lists into plain strings using join. string can be used in place of sed, grep, tr, cut, and awk in many situations. (#2296) After seeing an escape character wait up to 300ms for an additional character. This is consistent with readline (e.g. bash) and can be configured via the fish_escape_delay_ms variable. This allows using escape as the Meta modifier. (#1356) Add new directories for vendor functions and configuration snippets (#2498) A new fish_realpath builtin and associated function to allow the use of realpath even on those platforms that don't ship an appropriate command. (#2932) Alt-# toggles the current command line between commented and uncommented states, making it easy to save a command in history without executing it. The fish_vi_mode function is now deprecated in favour of fish_vi_key_bindings Backward-incompatible changes Unmatched globs will now cause an error, except when used with for, set or count (#2719, #2394) and and or will now bind to the closest if or while, allowing compound conditions without begin and end (#1428) set -ql now searches up to function scope for variables (#2502) status -f will now behave the same when run as the main script or using source (#2643) source no longer puts the file name in $argv if no arguments are given (#139) Other Notable Fixes and Improvements Fish no longer silences errors in config.fish (#2702) Move the history file to $XDG_DATA_HOME/fish (or ~/.local/share if it has not been set) Directory autosuggestions will now descend as far as possible if there is only one child directory (#2531) Add support for bright colors (#1464) Allow Ctrl-J (\cj) to be bound separately from Ctrl-M (\cm) (#217) psub now has a "-s"/"-suffix" option to name the temporary file with that suffix Enable 24-bit colors on select terminals (#2495) Support for SVN status in the prompt (#2582) Mercurial and SVN support have been added to the Classic + Git (now Classic + VCS) prompt (via the new __fish_vcs_prompt function) (#2592) export now handles variables with a "=" in the value (#2403) Avoid confusing the terminal line driver with non-printing characters in fish_title(#2453) New completions for: alsactl Archlinux’s asp, makepkg Atom’s apm (#2390) entr - the "Event Notify Test Runner" (#2265) Fedora’s dnf (#2638) OSX diskutil (#2738) pkgng (#2395) pulseaudio’s pacmd and pactl rmmod (#3007) rust’s rustc and cargo (#2409) sysctl (#2214) systemd’s machinectl (#2158), busctl (#2144), systemd-nspawn, systemd-analyze, localectl, timedatectl and more Fish no longer has a function called sgrep, freeing it for user customization (#2245) A rewrite of the completions for cd, fixing a few bugs (#2299, #2300, #562) Linux VTs now run in a simplified mode to avoid issues (#2311) The vi-bindings now inherit from the emacs bindings Fish will also execute fish_user_key_bindings when in vi-mode funced will now also check $VISUAL (#2268) A new suspend function (#2269) Subcommand completion now works better with split /usr (#2141) The command-not-found-handler can now be overridden by defining a function called __fish_command_not_found_handler in config.fish (#2331) A few fixes to the Sorin theme PWD shortening in the prompt can now be configured via the fish_prompt_pwd_dir_length variable, set to the length per path component (#2473) fish now ships a skeleton file for /etc/fish/config.fish that only contains some documentation, the included code has been moved to the corresponding file in /usr (#2799) Release Notes for fish 2.2.0 (released July 12, 2015) Significant Changes Abbreviations: the new `abbr` command allows for interactively-expanded abbreviations, allowing quick access to frequently-used commands (#731). Vi mode: run `fish_vi_mode` to switch fish into the key bindings and prompt familiar to users of the Vi editor (#65). New inline and interactive pager, which will be familiar to users of zsh (#291). Underlying architectural changes: the `fishd` universal variable server has been removed as it was a source of many bugs and security problems. Notably, old fish sessions will not be able to communicate universal variable changes with new fish sessions. For best results, restart all running instances of `fish`. The web-based configuration tool has been redesigned, featuring a prompt theme chooser and other improvements. New German, Brazilian Portuguese, and Chinese translations. Backward-incompatible changes These are kept to a minimum, but either change undocumented features or are too hard to use in their existing forms. These changes may break existing scripts. `commandline` no longer interprets functions "in reverse", instead behaving as expected (#1567). The previously-undocumented `CMD_DURATION` variable is now set for all commands and contains the execution time of the last command in milliseconds (#1585). It is no longer exported to other commands (#1896). `if` / `else` conditional statements now return values consistent with the Single Unix Specification, like other shells (#1443). A new "top-level" local scope has been added, allowing local variables declared on the commandline to be visible to subsequent commands. (#206) Other notable fixes and improvements New documentation design (#1662), which requires a Doxygen version 1.8.7 or newer to build. Fish now defines a default directory for other packages to provide completions. By default this is `/usr/share/fish/vendor-completions.d`; on systems with `pkgconfig` installed this path is discoverable with `pkg-config --variable completionsdir fish`. A new parser removes many bugs; all existing syntax should keep working. New `fish_preexec` and `fish_postexec` events are fired before and after job execution respectively (#1549). Unmatched wildcards no longer prevent a job from running. Wildcards used interactively will still print an error, but the job will proceed and the wildcard will expand to zero arguments (#1482). The `.` command is deprecated and the `source` command is preferred (#310). `bind` supports "bind modes", which allows bindings to be set for a particular named mode, to support the implementation of Vi mode. A new `export` alias, which behaves like other shells (#1833). `command` has a new `--search` option to print the name of the disk file that would be executed, like other shells' `command -v` (#1540). `commandline` has a new `--paging-mode` option to support the new pager. `complete` has a new `--wraps` option, which allows a command to (recursively) inherit the completions of a wrapped command (#393), and `complete -e` now correctly erases completions (#380). Completions are now generated from manual pages by default on the first run of fish (#997). `fish_indent` can now produce colorized (`--ansi`) and HTML (`--html`) output (#1827). `functions --erase` now prevents autoloaded functions from being reloaded in the current session. `history` has a new `--merge` option, to incorporate history from other sessions into the current session (#825). `jobs` returns 1 if there are no active jobs (#1484). `read` has several new options: `--array` to break input into an array (#1540) `--null` to break lines on NUL characters rather than newlines (#1694) `--nchars` to read a specific number of characters (#1616) `--right-prompt` to display a right-hand-side prompt during interactive read (#1698). `type` has a new `-q` option to suppress output (#1540 and, like other shells, `type -a` now prints all matches for a command (#261). Pressing F1 now shows the manual page for the current command (#1063). `fish_title` functions have access to the arguments of the currently running argument as `$argv[1]` (#1542). The OS command-not-found handler is used on Arch Linux (#1925), nixOS (#1852), openSUSE and Fedora (#1280). `Alt`+`.` searches backwards in the token history, mapping to the same behavior as inserting the last argument of the previous command, like other shells (#89). The `SHLVL` environment variable is incremented correctly (#1634 & #1693). Added completions for `adb` (#1165 & #1211), `apt` (#2018), `aura` (#1292), `composer` (#1607), `cygport` (#1841), `dropbox` (#1533), `elixir` (#1167), `fossil`, `heroku` (#1790), `iex` (#1167), `kitchen` (#2000), `nix` (#1167), `node`/`npm` (#1566), `opam` (#1615), `setfacl` (#1752), `tmuxinator` (#1863), and `yast2` (#1739). Improved completions for `brew` (#1090 & #1810), `bundler` (#1779), `cd` (#1135), `emerge` (#1840),`git` (#1680, #1834 & #1951), `man` (#960), `modprobe` (#1124), `pacman` (#1292), `rpm` (#1236), `rsync` (#1872), `scp` (#1145), `ssh` (#1234), `sshfs` (#1268), `systemctl` (#1462, #1950 & #1972), `tmux` (#1853), `vagrant` (#1748), `yum` (#1269), and `zypper` (#1787).
2017-05-13 03:19:05 +02:00
EXTRACT_USING= gtar
USE_LANGUAGES+= c c++03
fish: update to 3.1.0 From Jonathan Schleifer in PR pkg/54965, lightly changed by myself for netbsd support. fish 3.1.0 (released February 12, 2020) Compared to the beta release of fish 3.1b1, fish version 3.1.0: * fixes a regression where spaces after a brace were removed despite brace expansion not occurring (#6564) * fixes a number of problems in compiling and testing on Cygwin (#6549) and Solaris-derived systems such as Illumos (#6553, #6554, #6555, #6556, and #6558); * fixes the process for building macOS packages; * fixes a regression where excessive error messages are printed if Unicode characters are emitted in non-Unicode-capable locales (#6584); and * contains some improvements to the documentation and a small number of completions. If you are upgrading from version 3.0.0 or before, please also review the release notes for 3.1b1 (included below). Release notes for fish 3.1b1 (released January 26, 2020) Notable improvements and fixes * A new $pipestatus variable contains a list of exit statuses of the previous job, for each of the separate commands in a pipeline (#5632). * fish no longer buffers pipes to the last function in a pipeline, improving many cases where pipes appeared to block or hang (#1396). * An overhaul of error messages for builtin commands, including a removal of the overwhelming usage summary, more readable stack traces (#3404, #5434), and stack traces for test (aka [) (#5771). * fish's debugging arguments have been significantly improved. The --debug-level option has been removed, and a new --debug option replaces it. This option accepts various categories, which may be listed via fish --print-debug-categories (#5879). A new --debug-output option allows for redirection of debug output. * string has a new collect subcommand for use in command substitutions, producing a single output instead of splitting on new lines (similar to "$(cmd)" in other shells) (#159). * The fish manual, tutorial and FAQ are now available in man format as fish-doc, fish-tutorial and fish-faq respectively (#5521). * Like other shells, cd now always looks for its argument in the current directory as a last resort, even if the CDPATH variable does not include it or "." (#4484). * fish now correctly handles CDPATH entries that start with .. (#6220) or contain ./ (#5887). * The fish_trace variable may be set to trace execution (#3427). This performs a similar role as set -x in other shells. * fish uses the temporary directory determined by the system, rather than relying on /tmp (#3845). * The fish Web configuration tool (fish_config) prints a list of commands it is executing, to help understanding and debugging (#5584). * Major performance improvements when pasting (#5866), executing lots of commands (#5905), importing history from bash (#6295), and when completing variables that might match $history (#6288). Syntax changes and new commands * A new builtin command, time, which allows timing of fish functions and builtins as well as external commands (#117). * Brace expansion now only takes place if the braces include a "," or a variable expansion, meaning common commands such as git reset HEAD@{0} do not require escaping (#5869). * New redirections &> and &| may be used to redirect or pipe stdout, and also redirect stderr to stdout (#6192). * switch now allows arguments that expand to nothing, like empty variables (#5677). * The VAR=val cmd syntax can now be used to run a command in a modified environment (#6287). * and is no longer recognised as a command, so that nonsensical constructs like and and and produce a syntax error (#6089). * math's exponent operator, '^', was previously left-associative, but now uses the more commonly-used right-associative behaviour (#6280). This means that math '3^0.5^2' was previously calculated as '(3^0.5)^2', but is now calculated as '3^(0.5^2)'. * In fish 3.0, the variable used with for loops inside command substitutions could leak into enclosing scopes; this was an inadvertent behaviour change and has been reverted (#6480). Scripting improvements * string split0 now returns 0 if it split something (#5701). * In the interest of consistency, builtin -q and command -q can now be used to query if a builtin or command exists (#5631). * math now accepts --scale=max for the maximum scale (#5579). * builtin $var now works correctly, allowing a variable as the builtin name (#5639). * cd understands the -- argument to make it possible to change to directories starting with a hyphen (#6071). * complete --do-complete now also does fuzzy matches (#5467). * complete --do-complete can be used inside completions, allowing limited recursion (#3474). * count now also counts lines fed on standard input (#5744). * eval produces an exit status of 0 when given no arguments, like other shells (#5692). * printf prints what it can when input hasn't been fully converted to a number, but still prints an error (#5532). * complete -C foo now works as expected, rather than requiring complete -Cfoo. * complete has a new --force-files option, to re-enable file completions. This allows sudo -E and pacman -Qo to complete correctly (#5646). * argparse now defaults to showing the current function name (instead of argparse) in its errors, making --name often superfluous (#5835). * argparse has a new --ignore-unknown option to keep unrecognized options, allowing multiple argparse passes to parse options (#5367). * argparse correctly handles flag value validation of options that only have short names (#5864). * read -S (short option of --shell) is recognised correctly (#5660). * read understands --list, which acts like --array in reading all arguments into a list inside a single variable, but is better named (#5846). * read has a new option, --tokenize, which splits a string into variables according to the shell's tokenization rules, considering quoting, escaping, and so on (#3823). * read interacts more correctly with the deprecated $IFS variable, in particular removing multiple separators when splitting a variable into a list (#6406), matching other shells. * fish_indent now handles semicolons better, including leaving them in place for ; and and ; or instead of breaking the line (#5859). * fish_indent --write now supports multiple file arguments, indenting them in turn. * The default read limit has been increased to 100MiB (#5267). * math now also understands x for multiplication, provided it is followed by whitespace (#5906). * math reports the right error when incorrect syntax is used inside parentheses (#6063), and warns when unsupported logical operations are used (#6096). * functions --erase now also prevents fish from autoloading a function for the first time (#5951). * jobs --last returns 0 to indicate success when a job is found (#6104). * commandline -p and commandline -j now split on && and || in addition to ; and & (#6214). * A bug where string split would drop empty strings if the output was only empty strings has been fixed (#5987). * eval no long creates a new local variable scope, but affects variables in the scope it is called from (#4443). source still creates a new local scope. * abbr has a new --query option to check for the existence of an abbreviation. * Local values for fish_complete_path and fish_function_path are now ignored; only their global values are respected. * Syntax error reports now display a marker in the correct position (#5812). * Empty universal variables may now be exported (#5992). * Exported universal variables are no longer imported into the global scope, preventing shadowing. This makes it easier to change such variables for all fish sessions and avoids breakage when the value is a list of multiple elements (#5258). * A bug where for could use invalid variable names has been fixed (#5800). * A bug where local variables would not be exported to functions has been fixed (#6153). * The null command (:) now always exits successfully, rather than passing through the previous exit status (#6022). * The output of functions FUNCTION matches the declaration of the function, correctly including comments or blank lines (#5285), and correctly includes any --wraps flags (#1625). * type supports a new option, --short, which suppress function expansion (#6403). * type --path with a function argument will now output the path to the file containing the definition of that function, if it exists. * type --force-path with an argument that cannot be found now correctly outputs nothing, as documented (#6411). * The $hostname variable is no longer truncated to 32 characters (#5758). * Line numbers in function backtraces are calculated correctly (#6350). * A new fish_cancel event is emitted when the command line is cancelled, which is useful for terminal integration (#5973). Interactive improvements * New Base16 color options are available through the Web-based configuration (#6504). * fish only parses /etc/paths on macOS in login shells, matching the bash implementation (#5637) and avoiding changes to path ordering in child shells (#5456). It now ignores blank lines like the bash implementation (#5809). * The locale is now reloaded when the LOCPATH variable is changed (#5815). * read no longer keeps a history, making it suitable for operations that shouldn't end up there, like password entry (#5904). * dirh outputs its stack in the correct order (#5477), and behaves as documented when universal variables are used for its stack (#5797). * funced and the edit-commandline-in-buffer bindings did not work in fish 3.0 when the $EDITOR variable contained spaces; this has been corrected (#5625). * Builtins now pipe their help output to a pager automatically (#6227). * set_color now colors the --print-colors output in the matching colors if it is going to a terminal. * fish now underlines every valid entered path instead of just the last one (#5872). * When syntax highlighting a string with an unclosed quote, only the quote itself will be shown as an error, instead of the whole argument. * Syntax highlighting works correctly with variables as commands (#5658) and redirections to close file descriptors (#6092). * help works properly on Windows Subsytem for Linux (#5759, #6338). * A bug where disown could crash the shell has been fixed (#5720). * fish will not autosuggest files ending with ~ unless there are no other candidates, as these are generally backup files (#985). * Escape in the pager works correctly (#5818). * Key bindings that call fg no longer leave the terminal in a broken state (#2114). * Brackets (#5831) and filenames containing $ (#6060) are completed with appropriate escaping. * The output of complete and functions is now colorized in interactive terminals. * The Web-based configuration handles aliases that include single quotes correctly (#6120), and launches correctly under Termux (#6248) and OpenBSD (#6522). * function now correctly validates parameters for --argument-names as valid variable names (#6147) and correctly parses options following --argument-names, as in "--argument-names foo --description bar" (#6186). * History newly imported from bash includes command lines using && or ||. * The automatic generation of completions from manual pages is better described in job and process listings, and no longer produces a warning when exiting fish (#6269). * In private mode, setting $fish_greeting to an empty string before starting the private session will prevent the warning about history not being saved from being printed (#6299). * In the interactive editor, a line break (Enter) inside unclosed brackets will insert a new line, rather than executing the command and producing an error (#6316). * Ctrl-C always repaints the prompt (#6394). * When run interactively from another program (such as Python), fish will correctly start a new process group, like other shells (#5909). * Job identifiers (for example, for background jobs) are assigned more logically (#6053). * A bug where history would appear truncated if an empty command was executed was fixed (#6032). New or improved bindings * Pasting strips leading spaces to avoid pasted commands being omitted from the history (#4327). * Shift-Left and Shift-Right now default to moving backwards and forwards by one bigword (words separated by whitespace) (#1505). * The default escape delay (to differentiate between the escape key and an alt-combination) has been reduced to 30ms, down from 300ms for the default mode and 100ms for Vi mode (#3904). * The forward-bigword binding now interacts correctly with autosuggestions (#5336). * The fish_clipboard_* functions support Wayland by using [wl-clipboard](https://github.com/bugaevc/wl-clipboard) (#5450). * The nextd and prevd functions no longer print "Hit end of history", instead using a bell. They correctly store working directories containing symbolic links (#6395). * If a fish_mode_prompt function exists, Vi mode will only execute it on mode-switch instead of the entire prompt. This should make it much more responsive with slow prompts (#5783). * The path-component bindings (like Ctrl-w) now also stop at ":" and "@", because those are used to denote user and host in commands such as ssh (#5841). * The NULL character can now be bound via bind -k nul. Terminals often generate this character via control-space. (#3189). * A new readline command expand-abbr can be used to trigger abbreviation expansion (#5762). * A new readline command, delete-or-exit, removes a character to the right of the cursor or exits the shell if the command line is empty (moving this functionality out of the delete-or-exit function). * The self-insert readline command will now insert the binding sequence, if not empty. * A new binding to prepend sudo, bound to Alt-S by default (#6140). * The Alt-W binding to describe a command should now work better with multiline prompts (#6110) * The Alt-H binding to open a command's man page now tries to ignore sudo (#6122). * A new pair of bind functions, history-prefix-search-backward (and forward), was introduced (#6143). * Vi mode now supports R to enter replace mode (#6342), and d0 to delete the current line (#6292). * In Vi mode, hitting Enter in replace-one mode no longer erases the prompt (#6298). * Selections in Vi mode are inclusive, matching the actual behaviour of Vi (#5770). Improved prompts * The Git prompt in informative mode now shows the number of stashes if enabled. * The Git prompt now has an option ($__fish_git_prompt_use_informative_chars) to use the (more modern) informative characters without enabling informative mode. * The default prompt now also features VCS integration and will color the host if running via SSH (#6375). * The default and example prompts print the pipe status if an earlier command in the pipe fails. * The default and example prompts try to resolve exit statuses to signal names when appropriate. Improved terminal output * New fish_pager_color_ options have been added to control more elements of the pager's colors (#5524). * Better detection and support for using fish from various system consoles, where limited colors and special characters are supported (#5552). * fish now tries to guess if the system supports Unicode 9 (and displays emoji as wide), eliminating the need to set $fish_emoji_width in most cases (#5722). * Improvements to the display of wide characters, particularly Korean characters and emoji (#5583, #5729). * The Vi mode cursor is correctly redrawn when regaining focus under terminals that report focus (eg tmux) (#4788). * Variables that control background colors (such as fish_pager_color_search_match) can now use --reverse. Completions * Added completions for * aws * bat (#6052) * bosh (#5700) * btrfs * camcontrol * cf (#5700) * chronyc (#6496) * code (#6205) * cryptsetup (#6488) * csc and csi (#6016) * cwebp (#6034) * cygpath and cygstart (#6239) * epkginfo (#5829) * ffmpeg, ffplay, and ffprobe (#5922) * fsharpc and fsharpi (#6016) * fzf (#6178) * g++ (#6217) * gpg1 (#6139) * gpg2 (#6062) * grub-mkrescue (#6182) * hledger (#6043) * hwinfo (#6496) * irb (#6260) * iw (#6232) * kak * keepassxc-cli (#6505) * keybase (#6410) * loginctl (#6501) * lz4, lz4c and lz4cat (#6364) * mariner (#5718) * nethack (#6240) * patool (#6083) * phpunit (#6197) * plutil (#6301) * pzstd (#6364) * qubes-gpg-client (#6067) * resolvectl (#6501) * rg * rustup * sfdx (#6149) * speedtest and speedtest-cli (#5840) * src (#6026) * tokei (#6085) * tsc (#6016) * unlz4 (#6364) * unzstd (#6364) * vbc (#6016) * zpaq (#6245) * zstd, zstdcat, zstdgrep, zstdless and zstdmt (#6364) * Lots of improvements to completions. * Selecting short options which also have a long name from the completion pager is possible (#5634). * Tab completion will no longer add trailing spaces if they already exist (#6107). * Completion of subcommands to builtins like and or not now works correctly (#6249). * Completion of arguments to short options works correctly when multiple short options are used together (#332). * Activating completion in the middle of an invalid completion does not move the cursor any more, making it easier to fix a mistake (#4124). * Completion in empty commandlines now lists all available commands. * Functions listed as completions could previously leak parts of the function as other completions; this has been fixed. Deprecations and removed features * The vcs-prompt functions have been promoted to names without double-underscore, so __fish_git_prompt is now fish_git_prompt, __fish_vcs_prompt is now fish_vcs_prompt, __fish_hg_prompt is now fish_hg_prompt and __fish_svn_prompt is now fish_svn_prompt. Shims at the old names have been added, and the variables have kept their old names (#5586). * string replace has an additional round of escaping in the replacement expression, so escaping backslashes requires many escapes (eg string replace -ra '([ab])' '\\\\\\\$1' a). The new feature flag regex-easyesc can be used to disable this, so that the same effect can be achieved with string replace -ra '([ab])' '\\\\$1' a (#5556). As a reminder, the intention behind feature flags is that this will eventually become the default and then only option, so scripts should be updated. * The fish_vi_mode function, deprecated in fish 2.3, has been removed. Use fish_vi_key_bindings instead (#6372). For distributors and developers * fish 3.0 introduced a CMake-based build system. In fish 3.1, both the Autotools-based build and legacy Xcode build system have been removed, leaving only the CMake build system. All distributors and developers must install CMake. * fish now depends on the common tee external command, for the psub process substitution function. * The documentation is now built with Sphinx. The old Doxygen-based documentation system has been removed. Developers, and distributors who wish to rebuild the documentation, must install Sphinx. * The INTERNAL_WCWIDTH build option has been removed, as fish now always uses an internal wcwidth function. It has a number of configuration options that make it more suitable for general use (#5777). * mandoc can now be used to format the output from --help if nroff is not installed, reducing the number of external dependencies on systems with mandoc installed (#5489). * Some bugs preventing building on Solaris-derived systems such as Illumos were fixed (#5458, #5461, #5611). * Completions for npm, bower and yarn no longer require the jq utility for full functionality, but will use Python instead if it is available. * The paths for completions, functions and configuration snippets have been extended. On systems that define XDG_DATA_DIRS, each of the directories in this variable are searched in the subdirectories fish/vendor_completions.d, fish/vendor_functions.d, and fish/vendor_conf.d respectively. On systems that do not define this variable in the environment, the vendor directories are searched for in both the installation prefix and the default "extra" directory, which now defaults to /usr/local (#5029).
2020-02-18 23:00:49 +01:00
USE_CMAKE= yes
fish: Update to 3.0.2 # fish 3.0.2 (released February 19, 2019) This release of fish fixes an issue discovered in fish 3.0.1. ### Fixes and improvements - The PWD environment variable is now ignored if it does not resolve to the true working directory, fixing strange behaviour in terminals started by editors and IDEs (#5647). If you are upgrading from version 2.7.1 or before, please also review the release notes for 3.0.1, 3.0.0 and 3.0b1 (included below). --- # fish 3.0.1 (released February 11, 2019) This release of fish fixes a number of major issues discovered in fish 3.0.0. ### Fixes and improvements - `exec` does not complain about running foreground jobs when called (#5449). - while loops now evaluate to the last executed command in the loop body (or zero if the body was empty), matching POSIX semantics (#4982). - `read --silent` no longer echoes to the tty when run from a non-interactive script (#5519). - On macOS, path entries with spaces in `/etc/paths` and `/etc/paths.d` now correctly set path entries with spaces. Likewise, `MANPATH` is correctly set from `/etc/manpaths` and `/etc/manpaths.d` (#5481). - fish starts correctly under Cygwin/MSYS2 (#5426). - The `pager-toggle-search` binding (Ctrl-S by default) will now activate the search field, even when the pager is not focused. - The error when a command is not found is now printed a single time, instead of once per argument (#5588). - Fixes and improvements to the git completions, including printing correct paths with older git versions, fuzzy matching again, reducing unnecessary offers of root paths (starting with `:/`) (#5578, #5574, #5476), and ignoring shell aliases, so enterprising users can set up the wrapping command (via `set -g __fish_git_alias_$command $whatitwraps`) (#5412). - Significant performance improvements to core shell functions (#5447) and to the `kill` completions (#5541). - Starting in symbolically-linked working directories works correctly (#5525). - The default `fish_title` function no longer contains extra spaces (#5517). - The `nim` prompt now works correctly when chosen in the Web-based configuration (#5490). - `string` now prints help to stdout, like other builtins (#5495). - Killing the terminal while fish is in vi normal mode will no longer send it spinning and eating CPU. (#5528) - A number of crashes have been fixed (#5550, #5548, #5479, #5453). - Improvements to the documentation and certain completions. ### Known issues There is one significant known issue that was not corrected before the release: - fish does not run correctly under Windows Services for Linux before Windows 10 version 1809/17763, and the message warning of this may not be displayed (#5619). If you are upgrading from version 2.7.1 or before, please also review the release notes for 3.0.0 and 3.0b1 (included below).
2019-11-09 13:02:29 +01:00
USE_TOOLS+= msgfmt
fish: update to 3.1.0 From Jonathan Schleifer in PR pkg/54965, lightly changed by myself for netbsd support. fish 3.1.0 (released February 12, 2020) Compared to the beta release of fish 3.1b1, fish version 3.1.0: * fixes a regression where spaces after a brace were removed despite brace expansion not occurring (#6564) * fixes a number of problems in compiling and testing on Cygwin (#6549) and Solaris-derived systems such as Illumos (#6553, #6554, #6555, #6556, and #6558); * fixes the process for building macOS packages; * fixes a regression where excessive error messages are printed if Unicode characters are emitted in non-Unicode-capable locales (#6584); and * contains some improvements to the documentation and a small number of completions. If you are upgrading from version 3.0.0 or before, please also review the release notes for 3.1b1 (included below). Release notes for fish 3.1b1 (released January 26, 2020) Notable improvements and fixes * A new $pipestatus variable contains a list of exit statuses of the previous job, for each of the separate commands in a pipeline (#5632). * fish no longer buffers pipes to the last function in a pipeline, improving many cases where pipes appeared to block or hang (#1396). * An overhaul of error messages for builtin commands, including a removal of the overwhelming usage summary, more readable stack traces (#3404, #5434), and stack traces for test (aka [) (#5771). * fish's debugging arguments have been significantly improved. The --debug-level option has been removed, and a new --debug option replaces it. This option accepts various categories, which may be listed via fish --print-debug-categories (#5879). A new --debug-output option allows for redirection of debug output. * string has a new collect subcommand for use in command substitutions, producing a single output instead of splitting on new lines (similar to "$(cmd)" in other shells) (#159). * The fish manual, tutorial and FAQ are now available in man format as fish-doc, fish-tutorial and fish-faq respectively (#5521). * Like other shells, cd now always looks for its argument in the current directory as a last resort, even if the CDPATH variable does not include it or "." (#4484). * fish now correctly handles CDPATH entries that start with .. (#6220) or contain ./ (#5887). * The fish_trace variable may be set to trace execution (#3427). This performs a similar role as set -x in other shells. * fish uses the temporary directory determined by the system, rather than relying on /tmp (#3845). * The fish Web configuration tool (fish_config) prints a list of commands it is executing, to help understanding and debugging (#5584). * Major performance improvements when pasting (#5866), executing lots of commands (#5905), importing history from bash (#6295), and when completing variables that might match $history (#6288). Syntax changes and new commands * A new builtin command, time, which allows timing of fish functions and builtins as well as external commands (#117). * Brace expansion now only takes place if the braces include a "," or a variable expansion, meaning common commands such as git reset HEAD@{0} do not require escaping (#5869). * New redirections &> and &| may be used to redirect or pipe stdout, and also redirect stderr to stdout (#6192). * switch now allows arguments that expand to nothing, like empty variables (#5677). * The VAR=val cmd syntax can now be used to run a command in a modified environment (#6287). * and is no longer recognised as a command, so that nonsensical constructs like and and and produce a syntax error (#6089). * math's exponent operator, '^', was previously left-associative, but now uses the more commonly-used right-associative behaviour (#6280). This means that math '3^0.5^2' was previously calculated as '(3^0.5)^2', but is now calculated as '3^(0.5^2)'. * In fish 3.0, the variable used with for loops inside command substitutions could leak into enclosing scopes; this was an inadvertent behaviour change and has been reverted (#6480). Scripting improvements * string split0 now returns 0 if it split something (#5701). * In the interest of consistency, builtin -q and command -q can now be used to query if a builtin or command exists (#5631). * math now accepts --scale=max for the maximum scale (#5579). * builtin $var now works correctly, allowing a variable as the builtin name (#5639). * cd understands the -- argument to make it possible to change to directories starting with a hyphen (#6071). * complete --do-complete now also does fuzzy matches (#5467). * complete --do-complete can be used inside completions, allowing limited recursion (#3474). * count now also counts lines fed on standard input (#5744). * eval produces an exit status of 0 when given no arguments, like other shells (#5692). * printf prints what it can when input hasn't been fully converted to a number, but still prints an error (#5532). * complete -C foo now works as expected, rather than requiring complete -Cfoo. * complete has a new --force-files option, to re-enable file completions. This allows sudo -E and pacman -Qo to complete correctly (#5646). * argparse now defaults to showing the current function name (instead of argparse) in its errors, making --name often superfluous (#5835). * argparse has a new --ignore-unknown option to keep unrecognized options, allowing multiple argparse passes to parse options (#5367). * argparse correctly handles flag value validation of options that only have short names (#5864). * read -S (short option of --shell) is recognised correctly (#5660). * read understands --list, which acts like --array in reading all arguments into a list inside a single variable, but is better named (#5846). * read has a new option, --tokenize, which splits a string into variables according to the shell's tokenization rules, considering quoting, escaping, and so on (#3823). * read interacts more correctly with the deprecated $IFS variable, in particular removing multiple separators when splitting a variable into a list (#6406), matching other shells. * fish_indent now handles semicolons better, including leaving them in place for ; and and ; or instead of breaking the line (#5859). * fish_indent --write now supports multiple file arguments, indenting them in turn. * The default read limit has been increased to 100MiB (#5267). * math now also understands x for multiplication, provided it is followed by whitespace (#5906). * math reports the right error when incorrect syntax is used inside parentheses (#6063), and warns when unsupported logical operations are used (#6096). * functions --erase now also prevents fish from autoloading a function for the first time (#5951). * jobs --last returns 0 to indicate success when a job is found (#6104). * commandline -p and commandline -j now split on && and || in addition to ; and & (#6214). * A bug where string split would drop empty strings if the output was only empty strings has been fixed (#5987). * eval no long creates a new local variable scope, but affects variables in the scope it is called from (#4443). source still creates a new local scope. * abbr has a new --query option to check for the existence of an abbreviation. * Local values for fish_complete_path and fish_function_path are now ignored; only their global values are respected. * Syntax error reports now display a marker in the correct position (#5812). * Empty universal variables may now be exported (#5992). * Exported universal variables are no longer imported into the global scope, preventing shadowing. This makes it easier to change such variables for all fish sessions and avoids breakage when the value is a list of multiple elements (#5258). * A bug where for could use invalid variable names has been fixed (#5800). * A bug where local variables would not be exported to functions has been fixed (#6153). * The null command (:) now always exits successfully, rather than passing through the previous exit status (#6022). * The output of functions FUNCTION matches the declaration of the function, correctly including comments or blank lines (#5285), and correctly includes any --wraps flags (#1625). * type supports a new option, --short, which suppress function expansion (#6403). * type --path with a function argument will now output the path to the file containing the definition of that function, if it exists. * type --force-path with an argument that cannot be found now correctly outputs nothing, as documented (#6411). * The $hostname variable is no longer truncated to 32 characters (#5758). * Line numbers in function backtraces are calculated correctly (#6350). * A new fish_cancel event is emitted when the command line is cancelled, which is useful for terminal integration (#5973). Interactive improvements * New Base16 color options are available through the Web-based configuration (#6504). * fish only parses /etc/paths on macOS in login shells, matching the bash implementation (#5637) and avoiding changes to path ordering in child shells (#5456). It now ignores blank lines like the bash implementation (#5809). * The locale is now reloaded when the LOCPATH variable is changed (#5815). * read no longer keeps a history, making it suitable for operations that shouldn't end up there, like password entry (#5904). * dirh outputs its stack in the correct order (#5477), and behaves as documented when universal variables are used for its stack (#5797). * funced and the edit-commandline-in-buffer bindings did not work in fish 3.0 when the $EDITOR variable contained spaces; this has been corrected (#5625). * Builtins now pipe their help output to a pager automatically (#6227). * set_color now colors the --print-colors output in the matching colors if it is going to a terminal. * fish now underlines every valid entered path instead of just the last one (#5872). * When syntax highlighting a string with an unclosed quote, only the quote itself will be shown as an error, instead of the whole argument. * Syntax highlighting works correctly with variables as commands (#5658) and redirections to close file descriptors (#6092). * help works properly on Windows Subsytem for Linux (#5759, #6338). * A bug where disown could crash the shell has been fixed (#5720). * fish will not autosuggest files ending with ~ unless there are no other candidates, as these are generally backup files (#985). * Escape in the pager works correctly (#5818). * Key bindings that call fg no longer leave the terminal in a broken state (#2114). * Brackets (#5831) and filenames containing $ (#6060) are completed with appropriate escaping. * The output of complete and functions is now colorized in interactive terminals. * The Web-based configuration handles aliases that include single quotes correctly (#6120), and launches correctly under Termux (#6248) and OpenBSD (#6522). * function now correctly validates parameters for --argument-names as valid variable names (#6147) and correctly parses options following --argument-names, as in "--argument-names foo --description bar" (#6186). * History newly imported from bash includes command lines using && or ||. * The automatic generation of completions from manual pages is better described in job and process listings, and no longer produces a warning when exiting fish (#6269). * In private mode, setting $fish_greeting to an empty string before starting the private session will prevent the warning about history not being saved from being printed (#6299). * In the interactive editor, a line break (Enter) inside unclosed brackets will insert a new line, rather than executing the command and producing an error (#6316). * Ctrl-C always repaints the prompt (#6394). * When run interactively from another program (such as Python), fish will correctly start a new process group, like other shells (#5909). * Job identifiers (for example, for background jobs) are assigned more logically (#6053). * A bug where history would appear truncated if an empty command was executed was fixed (#6032). New or improved bindings * Pasting strips leading spaces to avoid pasted commands being omitted from the history (#4327). * Shift-Left and Shift-Right now default to moving backwards and forwards by one bigword (words separated by whitespace) (#1505). * The default escape delay (to differentiate between the escape key and an alt-combination) has been reduced to 30ms, down from 300ms for the default mode and 100ms for Vi mode (#3904). * The forward-bigword binding now interacts correctly with autosuggestions (#5336). * The fish_clipboard_* functions support Wayland by using [wl-clipboard](https://github.com/bugaevc/wl-clipboard) (#5450). * The nextd and prevd functions no longer print "Hit end of history", instead using a bell. They correctly store working directories containing symbolic links (#6395). * If a fish_mode_prompt function exists, Vi mode will only execute it on mode-switch instead of the entire prompt. This should make it much more responsive with slow prompts (#5783). * The path-component bindings (like Ctrl-w) now also stop at ":" and "@", because those are used to denote user and host in commands such as ssh (#5841). * The NULL character can now be bound via bind -k nul. Terminals often generate this character via control-space. (#3189). * A new readline command expand-abbr can be used to trigger abbreviation expansion (#5762). * A new readline command, delete-or-exit, removes a character to the right of the cursor or exits the shell if the command line is empty (moving this functionality out of the delete-or-exit function). * The self-insert readline command will now insert the binding sequence, if not empty. * A new binding to prepend sudo, bound to Alt-S by default (#6140). * The Alt-W binding to describe a command should now work better with multiline prompts (#6110) * The Alt-H binding to open a command's man page now tries to ignore sudo (#6122). * A new pair of bind functions, history-prefix-search-backward (and forward), was introduced (#6143). * Vi mode now supports R to enter replace mode (#6342), and d0 to delete the current line (#6292). * In Vi mode, hitting Enter in replace-one mode no longer erases the prompt (#6298). * Selections in Vi mode are inclusive, matching the actual behaviour of Vi (#5770). Improved prompts * The Git prompt in informative mode now shows the number of stashes if enabled. * The Git prompt now has an option ($__fish_git_prompt_use_informative_chars) to use the (more modern) informative characters without enabling informative mode. * The default prompt now also features VCS integration and will color the host if running via SSH (#6375). * The default and example prompts print the pipe status if an earlier command in the pipe fails. * The default and example prompts try to resolve exit statuses to signal names when appropriate. Improved terminal output * New fish_pager_color_ options have been added to control more elements of the pager's colors (#5524). * Better detection and support for using fish from various system consoles, where limited colors and special characters are supported (#5552). * fish now tries to guess if the system supports Unicode 9 (and displays emoji as wide), eliminating the need to set $fish_emoji_width in most cases (#5722). * Improvements to the display of wide characters, particularly Korean characters and emoji (#5583, #5729). * The Vi mode cursor is correctly redrawn when regaining focus under terminals that report focus (eg tmux) (#4788). * Variables that control background colors (such as fish_pager_color_search_match) can now use --reverse. Completions * Added completions for * aws * bat (#6052) * bosh (#5700) * btrfs * camcontrol * cf (#5700) * chronyc (#6496) * code (#6205) * cryptsetup (#6488) * csc and csi (#6016) * cwebp (#6034) * cygpath and cygstart (#6239) * epkginfo (#5829) * ffmpeg, ffplay, and ffprobe (#5922) * fsharpc and fsharpi (#6016) * fzf (#6178) * g++ (#6217) * gpg1 (#6139) * gpg2 (#6062) * grub-mkrescue (#6182) * hledger (#6043) * hwinfo (#6496) * irb (#6260) * iw (#6232) * kak * keepassxc-cli (#6505) * keybase (#6410) * loginctl (#6501) * lz4, lz4c and lz4cat (#6364) * mariner (#5718) * nethack (#6240) * patool (#6083) * phpunit (#6197) * plutil (#6301) * pzstd (#6364) * qubes-gpg-client (#6067) * resolvectl (#6501) * rg * rustup * sfdx (#6149) * speedtest and speedtest-cli (#5840) * src (#6026) * tokei (#6085) * tsc (#6016) * unlz4 (#6364) * unzstd (#6364) * vbc (#6016) * zpaq (#6245) * zstd, zstdcat, zstdgrep, zstdless and zstdmt (#6364) * Lots of improvements to completions. * Selecting short options which also have a long name from the completion pager is possible (#5634). * Tab completion will no longer add trailing spaces if they already exist (#6107). * Completion of subcommands to builtins like and or not now works correctly (#6249). * Completion of arguments to short options works correctly when multiple short options are used together (#332). * Activating completion in the middle of an invalid completion does not move the cursor any more, making it easier to fix a mistake (#4124). * Completion in empty commandlines now lists all available commands. * Functions listed as completions could previously leak parts of the function as other completions; this has been fixed. Deprecations and removed features * The vcs-prompt functions have been promoted to names without double-underscore, so __fish_git_prompt is now fish_git_prompt, __fish_vcs_prompt is now fish_vcs_prompt, __fish_hg_prompt is now fish_hg_prompt and __fish_svn_prompt is now fish_svn_prompt. Shims at the old names have been added, and the variables have kept their old names (#5586). * string replace has an additional round of escaping in the replacement expression, so escaping backslashes requires many escapes (eg string replace -ra '([ab])' '\\\\\\\$1' a). The new feature flag regex-easyesc can be used to disable this, so that the same effect can be achieved with string replace -ra '([ab])' '\\\\$1' a (#5556). As a reminder, the intention behind feature flags is that this will eventually become the default and then only option, so scripts should be updated. * The fish_vi_mode function, deprecated in fish 2.3, has been removed. Use fish_vi_key_bindings instead (#6372). For distributors and developers * fish 3.0 introduced a CMake-based build system. In fish 3.1, both the Autotools-based build and legacy Xcode build system have been removed, leaving only the CMake build system. All distributors and developers must install CMake. * fish now depends on the common tee external command, for the psub process substitution function. * The documentation is now built with Sphinx. The old Doxygen-based documentation system has been removed. Developers, and distributors who wish to rebuild the documentation, must install Sphinx. * The INTERNAL_WCWIDTH build option has been removed, as fish now always uses an internal wcwidth function. It has a number of configuration options that make it more suitable for general use (#5777). * mandoc can now be used to format the output from --help if nroff is not installed, reducing the number of external dependencies on systems with mandoc installed (#5489). * Some bugs preventing building on Solaris-derived systems such as Illumos were fixed (#5458, #5461, #5611). * Completions for npm, bower and yarn no longer require the jq utility for full functionality, but will use Python instead if it is available. * The paths for completions, functions and configuration snippets have been extended. On systems that define XDG_DATA_DIRS, each of the directories in this variable are searched in the subdirectories fish/vendor_completions.d, fish/vendor_functions.d, and fish/vendor_conf.d respectively. On systems that do not define this variable in the environment, the vendor directories are searched for in both the installation prefix and the default "extra" directory, which now defaults to /usr/local (#5029).
2020-02-18 23:00:49 +01:00
CMAKE_ARGS+= -DIntl_INCLUDE_DIR=${PREFIX}/include
PKG_SHELL= bin/fish
REPLACE_PYTHON+= share/tools/*.py
REPLACE_PYTHON+= share/tools/web_config/webconfig.py
LDFLAGS.SunOS+= -lintl
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD" && exists(/usr/include/execinfo.h)
CPPFLAGS+= -DHAVE_BACKTRACE
CPPFLAGS+= -DHAVE_BACKTRACE_SYMBOLS
CXXFLAGS.NetBSD+= -fpermissive
LDFLAGS+= -lexecinfo
.endif
fish: update to 3.1.0 From Jonathan Schleifer in PR pkg/54965, lightly changed by myself for netbsd support. fish 3.1.0 (released February 12, 2020) Compared to the beta release of fish 3.1b1, fish version 3.1.0: * fixes a regression where spaces after a brace were removed despite brace expansion not occurring (#6564) * fixes a number of problems in compiling and testing on Cygwin (#6549) and Solaris-derived systems such as Illumos (#6553, #6554, #6555, #6556, and #6558); * fixes the process for building macOS packages; * fixes a regression where excessive error messages are printed if Unicode characters are emitted in non-Unicode-capable locales (#6584); and * contains some improvements to the documentation and a small number of completions. If you are upgrading from version 3.0.0 or before, please also review the release notes for 3.1b1 (included below). Release notes for fish 3.1b1 (released January 26, 2020) Notable improvements and fixes * A new $pipestatus variable contains a list of exit statuses of the previous job, for each of the separate commands in a pipeline (#5632). * fish no longer buffers pipes to the last function in a pipeline, improving many cases where pipes appeared to block or hang (#1396). * An overhaul of error messages for builtin commands, including a removal of the overwhelming usage summary, more readable stack traces (#3404, #5434), and stack traces for test (aka [) (#5771). * fish's debugging arguments have been significantly improved. The --debug-level option has been removed, and a new --debug option replaces it. This option accepts various categories, which may be listed via fish --print-debug-categories (#5879). A new --debug-output option allows for redirection of debug output. * string has a new collect subcommand for use in command substitutions, producing a single output instead of splitting on new lines (similar to "$(cmd)" in other shells) (#159). * The fish manual, tutorial and FAQ are now available in man format as fish-doc, fish-tutorial and fish-faq respectively (#5521). * Like other shells, cd now always looks for its argument in the current directory as a last resort, even if the CDPATH variable does not include it or "." (#4484). * fish now correctly handles CDPATH entries that start with .. (#6220) or contain ./ (#5887). * The fish_trace variable may be set to trace execution (#3427). This performs a similar role as set -x in other shells. * fish uses the temporary directory determined by the system, rather than relying on /tmp (#3845). * The fish Web configuration tool (fish_config) prints a list of commands it is executing, to help understanding and debugging (#5584). * Major performance improvements when pasting (#5866), executing lots of commands (#5905), importing history from bash (#6295), and when completing variables that might match $history (#6288). Syntax changes and new commands * A new builtin command, time, which allows timing of fish functions and builtins as well as external commands (#117). * Brace expansion now only takes place if the braces include a "," or a variable expansion, meaning common commands such as git reset HEAD@{0} do not require escaping (#5869). * New redirections &> and &| may be used to redirect or pipe stdout, and also redirect stderr to stdout (#6192). * switch now allows arguments that expand to nothing, like empty variables (#5677). * The VAR=val cmd syntax can now be used to run a command in a modified environment (#6287). * and is no longer recognised as a command, so that nonsensical constructs like and and and produce a syntax error (#6089). * math's exponent operator, '^', was previously left-associative, but now uses the more commonly-used right-associative behaviour (#6280). This means that math '3^0.5^2' was previously calculated as '(3^0.5)^2', but is now calculated as '3^(0.5^2)'. * In fish 3.0, the variable used with for loops inside command substitutions could leak into enclosing scopes; this was an inadvertent behaviour change and has been reverted (#6480). Scripting improvements * string split0 now returns 0 if it split something (#5701). * In the interest of consistency, builtin -q and command -q can now be used to query if a builtin or command exists (#5631). * math now accepts --scale=max for the maximum scale (#5579). * builtin $var now works correctly, allowing a variable as the builtin name (#5639). * cd understands the -- argument to make it possible to change to directories starting with a hyphen (#6071). * complete --do-complete now also does fuzzy matches (#5467). * complete --do-complete can be used inside completions, allowing limited recursion (#3474). * count now also counts lines fed on standard input (#5744). * eval produces an exit status of 0 when given no arguments, like other shells (#5692). * printf prints what it can when input hasn't been fully converted to a number, but still prints an error (#5532). * complete -C foo now works as expected, rather than requiring complete -Cfoo. * complete has a new --force-files option, to re-enable file completions. This allows sudo -E and pacman -Qo to complete correctly (#5646). * argparse now defaults to showing the current function name (instead of argparse) in its errors, making --name often superfluous (#5835). * argparse has a new --ignore-unknown option to keep unrecognized options, allowing multiple argparse passes to parse options (#5367). * argparse correctly handles flag value validation of options that only have short names (#5864). * read -S (short option of --shell) is recognised correctly (#5660). * read understands --list, which acts like --array in reading all arguments into a list inside a single variable, but is better named (#5846). * read has a new option, --tokenize, which splits a string into variables according to the shell's tokenization rules, considering quoting, escaping, and so on (#3823). * read interacts more correctly with the deprecated $IFS variable, in particular removing multiple separators when splitting a variable into a list (#6406), matching other shells. * fish_indent now handles semicolons better, including leaving them in place for ; and and ; or instead of breaking the line (#5859). * fish_indent --write now supports multiple file arguments, indenting them in turn. * The default read limit has been increased to 100MiB (#5267). * math now also understands x for multiplication, provided it is followed by whitespace (#5906). * math reports the right error when incorrect syntax is used inside parentheses (#6063), and warns when unsupported logical operations are used (#6096). * functions --erase now also prevents fish from autoloading a function for the first time (#5951). * jobs --last returns 0 to indicate success when a job is found (#6104). * commandline -p and commandline -j now split on && and || in addition to ; and & (#6214). * A bug where string split would drop empty strings if the output was only empty strings has been fixed (#5987). * eval no long creates a new local variable scope, but affects variables in the scope it is called from (#4443). source still creates a new local scope. * abbr has a new --query option to check for the existence of an abbreviation. * Local values for fish_complete_path and fish_function_path are now ignored; only their global values are respected. * Syntax error reports now display a marker in the correct position (#5812). * Empty universal variables may now be exported (#5992). * Exported universal variables are no longer imported into the global scope, preventing shadowing. This makes it easier to change such variables for all fish sessions and avoids breakage when the value is a list of multiple elements (#5258). * A bug where for could use invalid variable names has been fixed (#5800). * A bug where local variables would not be exported to functions has been fixed (#6153). * The null command (:) now always exits successfully, rather than passing through the previous exit status (#6022). * The output of functions FUNCTION matches the declaration of the function, correctly including comments or blank lines (#5285), and correctly includes any --wraps flags (#1625). * type supports a new option, --short, which suppress function expansion (#6403). * type --path with a function argument will now output the path to the file containing the definition of that function, if it exists. * type --force-path with an argument that cannot be found now correctly outputs nothing, as documented (#6411). * The $hostname variable is no longer truncated to 32 characters (#5758). * Line numbers in function backtraces are calculated correctly (#6350). * A new fish_cancel event is emitted when the command line is cancelled, which is useful for terminal integration (#5973). Interactive improvements * New Base16 color options are available through the Web-based configuration (#6504). * fish only parses /etc/paths on macOS in login shells, matching the bash implementation (#5637) and avoiding changes to path ordering in child shells (#5456). It now ignores blank lines like the bash implementation (#5809). * The locale is now reloaded when the LOCPATH variable is changed (#5815). * read no longer keeps a history, making it suitable for operations that shouldn't end up there, like password entry (#5904). * dirh outputs its stack in the correct order (#5477), and behaves as documented when universal variables are used for its stack (#5797). * funced and the edit-commandline-in-buffer bindings did not work in fish 3.0 when the $EDITOR variable contained spaces; this has been corrected (#5625). * Builtins now pipe their help output to a pager automatically (#6227). * set_color now colors the --print-colors output in the matching colors if it is going to a terminal. * fish now underlines every valid entered path instead of just the last one (#5872). * When syntax highlighting a string with an unclosed quote, only the quote itself will be shown as an error, instead of the whole argument. * Syntax highlighting works correctly with variables as commands (#5658) and redirections to close file descriptors (#6092). * help works properly on Windows Subsytem for Linux (#5759, #6338). * A bug where disown could crash the shell has been fixed (#5720). * fish will not autosuggest files ending with ~ unless there are no other candidates, as these are generally backup files (#985). * Escape in the pager works correctly (#5818). * Key bindings that call fg no longer leave the terminal in a broken state (#2114). * Brackets (#5831) and filenames containing $ (#6060) are completed with appropriate escaping. * The output of complete and functions is now colorized in interactive terminals. * The Web-based configuration handles aliases that include single quotes correctly (#6120), and launches correctly under Termux (#6248) and OpenBSD (#6522). * function now correctly validates parameters for --argument-names as valid variable names (#6147) and correctly parses options following --argument-names, as in "--argument-names foo --description bar" (#6186). * History newly imported from bash includes command lines using && or ||. * The automatic generation of completions from manual pages is better described in job and process listings, and no longer produces a warning when exiting fish (#6269). * In private mode, setting $fish_greeting to an empty string before starting the private session will prevent the warning about history not being saved from being printed (#6299). * In the interactive editor, a line break (Enter) inside unclosed brackets will insert a new line, rather than executing the command and producing an error (#6316). * Ctrl-C always repaints the prompt (#6394). * When run interactively from another program (such as Python), fish will correctly start a new process group, like other shells (#5909). * Job identifiers (for example, for background jobs) are assigned more logically (#6053). * A bug where history would appear truncated if an empty command was executed was fixed (#6032). New or improved bindings * Pasting strips leading spaces to avoid pasted commands being omitted from the history (#4327). * Shift-Left and Shift-Right now default to moving backwards and forwards by one bigword (words separated by whitespace) (#1505). * The default escape delay (to differentiate between the escape key and an alt-combination) has been reduced to 30ms, down from 300ms for the default mode and 100ms for Vi mode (#3904). * The forward-bigword binding now interacts correctly with autosuggestions (#5336). * The fish_clipboard_* functions support Wayland by using [wl-clipboard](https://github.com/bugaevc/wl-clipboard) (#5450). * The nextd and prevd functions no longer print "Hit end of history", instead using a bell. They correctly store working directories containing symbolic links (#6395). * If a fish_mode_prompt function exists, Vi mode will only execute it on mode-switch instead of the entire prompt. This should make it much more responsive with slow prompts (#5783). * The path-component bindings (like Ctrl-w) now also stop at ":" and "@", because those are used to denote user and host in commands such as ssh (#5841). * The NULL character can now be bound via bind -k nul. Terminals often generate this character via control-space. (#3189). * A new readline command expand-abbr can be used to trigger abbreviation expansion (#5762). * A new readline command, delete-or-exit, removes a character to the right of the cursor or exits the shell if the command line is empty (moving this functionality out of the delete-or-exit function). * The self-insert readline command will now insert the binding sequence, if not empty. * A new binding to prepend sudo, bound to Alt-S by default (#6140). * The Alt-W binding to describe a command should now work better with multiline prompts (#6110) * The Alt-H binding to open a command's man page now tries to ignore sudo (#6122). * A new pair of bind functions, history-prefix-search-backward (and forward), was introduced (#6143). * Vi mode now supports R to enter replace mode (#6342), and d0 to delete the current line (#6292). * In Vi mode, hitting Enter in replace-one mode no longer erases the prompt (#6298). * Selections in Vi mode are inclusive, matching the actual behaviour of Vi (#5770). Improved prompts * The Git prompt in informative mode now shows the number of stashes if enabled. * The Git prompt now has an option ($__fish_git_prompt_use_informative_chars) to use the (more modern) informative characters without enabling informative mode. * The default prompt now also features VCS integration and will color the host if running via SSH (#6375). * The default and example prompts print the pipe status if an earlier command in the pipe fails. * The default and example prompts try to resolve exit statuses to signal names when appropriate. Improved terminal output * New fish_pager_color_ options have been added to control more elements of the pager's colors (#5524). * Better detection and support for using fish from various system consoles, where limited colors and special characters are supported (#5552). * fish now tries to guess if the system supports Unicode 9 (and displays emoji as wide), eliminating the need to set $fish_emoji_width in most cases (#5722). * Improvements to the display of wide characters, particularly Korean characters and emoji (#5583, #5729). * The Vi mode cursor is correctly redrawn when regaining focus under terminals that report focus (eg tmux) (#4788). * Variables that control background colors (such as fish_pager_color_search_match) can now use --reverse. Completions * Added completions for * aws * bat (#6052) * bosh (#5700) * btrfs * camcontrol * cf (#5700) * chronyc (#6496) * code (#6205) * cryptsetup (#6488) * csc and csi (#6016) * cwebp (#6034) * cygpath and cygstart (#6239) * epkginfo (#5829) * ffmpeg, ffplay, and ffprobe (#5922) * fsharpc and fsharpi (#6016) * fzf (#6178) * g++ (#6217) * gpg1 (#6139) * gpg2 (#6062) * grub-mkrescue (#6182) * hledger (#6043) * hwinfo (#6496) * irb (#6260) * iw (#6232) * kak * keepassxc-cli (#6505) * keybase (#6410) * loginctl (#6501) * lz4, lz4c and lz4cat (#6364) * mariner (#5718) * nethack (#6240) * patool (#6083) * phpunit (#6197) * plutil (#6301) * pzstd (#6364) * qubes-gpg-client (#6067) * resolvectl (#6501) * rg * rustup * sfdx (#6149) * speedtest and speedtest-cli (#5840) * src (#6026) * tokei (#6085) * tsc (#6016) * unlz4 (#6364) * unzstd (#6364) * vbc (#6016) * zpaq (#6245) * zstd, zstdcat, zstdgrep, zstdless and zstdmt (#6364) * Lots of improvements to completions. * Selecting short options which also have a long name from the completion pager is possible (#5634). * Tab completion will no longer add trailing spaces if they already exist (#6107). * Completion of subcommands to builtins like and or not now works correctly (#6249). * Completion of arguments to short options works correctly when multiple short options are used together (#332). * Activating completion in the middle of an invalid completion does not move the cursor any more, making it easier to fix a mistake (#4124). * Completion in empty commandlines now lists all available commands. * Functions listed as completions could previously leak parts of the function as other completions; this has been fixed. Deprecations and removed features * The vcs-prompt functions have been promoted to names without double-underscore, so __fish_git_prompt is now fish_git_prompt, __fish_vcs_prompt is now fish_vcs_prompt, __fish_hg_prompt is now fish_hg_prompt and __fish_svn_prompt is now fish_svn_prompt. Shims at the old names have been added, and the variables have kept their old names (#5586). * string replace has an additional round of escaping in the replacement expression, so escaping backslashes requires many escapes (eg string replace -ra '([ab])' '\\\\\\\$1' a). The new feature flag regex-easyesc can be used to disable this, so that the same effect can be achieved with string replace -ra '([ab])' '\\\\$1' a (#5556). As a reminder, the intention behind feature flags is that this will eventually become the default and then only option, so scripts should be updated. * The fish_vi_mode function, deprecated in fish 2.3, has been removed. Use fish_vi_key_bindings instead (#6372). For distributors and developers * fish 3.0 introduced a CMake-based build system. In fish 3.1, both the Autotools-based build and legacy Xcode build system have been removed, leaving only the CMake build system. All distributors and developers must install CMake. * fish now depends on the common tee external command, for the psub process substitution function. * The documentation is now built with Sphinx. The old Doxygen-based documentation system has been removed. Developers, and distributors who wish to rebuild the documentation, must install Sphinx. * The INTERNAL_WCWIDTH build option has been removed, as fish now always uses an internal wcwidth function. It has a number of configuration options that make it more suitable for general use (#5777). * mandoc can now be used to format the output from --help if nroff is not installed, reducing the number of external dependencies on systems with mandoc installed (#5489). * Some bugs preventing building on Solaris-derived systems such as Illumos were fixed (#5458, #5461, #5611). * Completions for npm, bower and yarn no longer require the jq utility for full functionality, but will use Python instead if it is available. * The paths for completions, functions and configuration snippets have been extended. On systems that define XDG_DATA_DIRS, each of the directories in this variable are searched in the subdirectories fish/vendor_completions.d, fish/vendor_functions.d, and fish/vendor_conf.d respectively. On systems that do not define this variable in the environment, the vendor directories are searched for in both the installation prefix and the default "extra" directory, which now defaults to /usr/local (#5029).
2020-02-18 23:00:49 +01:00
# Upstream intentionally omits open.1 on Darwin, but adds realpath.1
PLIST_VARS+= open realpath
.if ${OPSYS} == "Darwin"
PLIST.realpath= yes
.else
2017-05-19 17:27:58 +02:00
PLIST.open= yes
.endif
.include "../../devel/pcre2/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/gettext-tools/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"