./shells/fish, User friendly command line shell for UNIX-like operating systems

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]

Branch: CURRENT, Version: 3.1.0, Package name: fish-3.1.0, Maintainer: pkgsrc-users

fish is a user friendly command line shell for UNIX-like operating
systems, written mainly with interactive use in mind. It differs
from other shells in that it only provides as few commands as
built-ins as possible and has a daemon which allows it to have
shared variables and command-line history between shell instances.
It also features feature-rich tab-completion and has command-line
syntax highlighting.

Required to run:
[devel/gettext-tools] [devel/pcre2] [lang/python37]

Required to build:

Master sites:

SHA1: ff863d58bcd5151f1235f8adaacebc2564f11fd4
RMD160: 75fbb9270035b6f172d3b1d7781430eb1e638c83
Filesize: 6651.321 KB

Version history: (Expand)

CVS history: (Expand)

   2020-02-18 23:00:49 by Maya Rashish | Files touched by this commit (17) | Package removed
Log message:
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

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
* 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
* 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
* complete has a new --force-files option, to re-enable file
  completions. This allows sudo -E and pacman -Qo to complete correctly
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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"
* 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
* 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
* 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.


* 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
* 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
* 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).
   2019-11-09 13:02:29 by Nia Alarie | Files touched by this commit (3) | Package updated
Log message:
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 \ 

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-04-25 09:33:32 by Maya Rashish | Files touched by this commit (620)
Log message:
PKGREVISION bump for anything using python without a PYPKGPREFIX.

This is a semi-manual PKGREVISION bump.
   2019-02-13 23:03:53 by Maya Rashish | Files touched by this commit (3) | Package updated
Log message:
fish: temporarily disable the functionality of man.fish

if MANPATH is empty but the environment variable is respected, we won't
be able to find any man pages, because fish set it to PREFIX/share/fish/man

   2019-02-12 17:49:31 by Maya Rashish | Files touched by this commit (10) | Package updated
Log message:
fish: update to 3.0.0

Add a "doc" option, default on, to avoid a doxygen dependency.
requested by martin & also in PR pkg/53934.

# fish 3.0.0 (released December 28, 2018)

fish 3 is a major release, which introduces some breaking changes alongside \ 
improved functionality. Although most existing scripts will continue to work, \ 
they should be reviewed against the list contained in the 3.0b1 release notes \ 

Compared to the beta release of fish 3.0b1, fish version 3.0.0:

- builds correctly against musl libc (#5407)
- handles huge numeric arguments to `test` correctly (#5414)
- removes the history colouring introduced in 3.0b1, which did not always work \ 

There is one significant known issue which was not able to be corrected before \ 
the release:

- fish 3.0.0 builds on Cygwin (#5423), but does not run correctly (#5426) and \ 
will result in a hanging terminal when started. Cygwin users are encouraged to \ 
continue using 2.7.1 until a release which corrects this is available.

If you are upgrading from version 2.7.1 or before, please also review the \ 
release notes for 3.0b1 (included below).


# fish 3.0b1 (released December 11, 2018)

fish 3 is a major release, which introduces some breaking changes alongside \ 
improved functionality. Although most existing scripts will continue to work, \ 
they should be reviewed against the list below.

## Notable non-backward compatible changes
-  Process and job expansion has largely been removed. `%` will no longer \ 
perform these expansions, except for `%self` for the PID of the current shell. \ 
Additionally, job management commands (`disown`, `wait`, `bg`, `fg` and `kill`) \ 
will expand job specifiers starting with `%` (#4230, #1202).
- `set x[1] x[2] a b`, to set multiple elements of an array at once, is no \ 
longer valid syntax (#4236).
- A literal `{}` now expands to itself, rather than nothing. This makes working \ 
with `find -exec` easier (#1109, #4632).
- Literally accessing a zero-index is now illegal syntax and is caught by the \ 
parser (#4862). (fish indices start at 1)
- Successive commas in brace expansions are handled in less surprising manner. \ 
For example, `{,,,}` expands to four empty strings rather than an empty string, \ 
a comma and an empty string again (#3002, #4632).
- `for` loop control variables are no longer local to the `for` block (#1935).
- Variables set in `if` and `while` conditions are available outside the block \ 
- Local exported (`set -lx`) vars are now visible to functions (#1091).
- The new `math` builtin (see below) does not support logical expressions; \ 
`test` should be used instead (#4777).
- Range expansion will now behave sensibly when given a single positive and \ 
negative index (`$foo[5..-1]` or `$foo[-1..5]`), clamping to the last valid \ 
index without changing direction if the list has fewer elements than expected.
- `read` now uses `-s` as short for `--silent` (à la `bash`); `--shell`'s \ 
abbreviation (formerly `-s`) is now `-S` instead (#4490).
- `cd` no longer resolves symlinks. fish now maintains a virtual path, matching \ 
other shells (#3350).
- `source` now requires an explicit `-` as the filename to read from the \ 
terminal (#2633).
- Arguments to `end` are now errors, instead of being silently ignored.
- The names `argparse`, `read`, `set`, `status`, `test` and `[` are now reserved \ 
and not allowed as function names. This prevents users unintentionally breaking \ 
stuff (#3000).
- The `fish_user_abbreviations` variable is no longer used; abbreviations will \ 
be migrated to the new storage format automatically.
- The `FISH_READ_BYTE_LIMIT` variable is now called `fish_byte_limit` (#4414).
- Environment variables are no longer split into arrays based on the record \ 
separator character on startup. Instead, variables are not split, unless their \ 
name ends in PATH, in which case they are split on colons (#436).
- The `history` builtin's `--with-time` option has been removed; this has been \ 
deprecated in favor of `--show-time` since 2.7.0 (#4403).
- The internal variables `__fish_datadir` and `__fish_sysconfdir` are now known \ 
as `__fish_data_dir` and `__fish_sysconf_dir` respectively.

## Deprecations

With the release of fish 3, a number of features have been marked for removal in \ 
the future. All users are encouraged to explore alternatives. A small number of \ 
these features are currently behind feature flags, which are turned on at \ 
present but may be turned off by default in the future.

A new feature flags mechanism is added for staging deprecations and breaking \ 
changes. Feature flags may be specified at launch with `fish --features ...` or \ 
by setting the universal `fish_features` variable. (#4940)

- The use of the `IFS` variable for `read` is deprecated; `IFS` will be ignored \ 
in the future (#4156). Use the `read --delimiter` option instead.
- The `function --on-process-exit` switch will be removed in future (#4700). Use \ 
the `fish_exit` event instead: `function --on-event fish_exit`.
- `$_` is deprecated and will removed in the future (#813). Use `status \ 
current-command` in a command substitution instead.
- `^` as a redirection deprecated and will be removed in the future. (#4394). \ 
Use `2>` to redirect stderr. This is controlled by the `stderr-nocaret` \ 
feature flag.
- `?` as a glob (wildcard) is deprecated and will be removed in the future \ 
(#4520). This is controlled by the `qmark-noglob` feature flag.

## Notable fixes and improvements
### Syntax changes and new commands
- fish now supports `&&` (like `and`), `||` (like `or`), and `!` (like \ 
`not`), for better migration from POSIX-compliant shells (#4620).
- Variables may be used as commands (#154).
- fish may be started in private mode via `fish --private`. Private mode fish \ 
sessions do not have access to the history file and any commands evaluated in \ 
private mode are not persisted for future sessions. A session variable \ 
`$fish_private_mode` can be queried to detect private mode and adjust the \ 
behavior of scripts accordingly to respect the user's wish for privacy.
- A new `wait` command for waiting on backgrounded processes (#4498).
- `math` is now a builtin rather than a wrapper around `bc` (#3157). Floating \ 
point computations is now used by default, and can be controlled with the new \ 
`--scale` option (#4478).
- Setting `$PATH` no longer warns on non-existent directories, allowing for a \ 
single $PATH to be shared across machines (eg via dotfiles) (#2969).
- `while` sets `$status` to a non-zero value if the loop is not executed (#4982).
- Command substitution output is now limited to 10 MB by default, controlled by \ 
the `fish_read_limit` variable (#3822). Notably, this is larger than most \ 
operating systems' argument size limit, so trying to pass argument lists this \ 
size to external commands has never worked.
- The machine hostname, where available, is now exposed as the `$hostname` \ 
reserved variable. This removes the dependency on the `hostname` executable \ 
- Bare `bind` invocations in config.fish now work. The `fish_user_key_bindings` \ 
function is no longer necessary, but will still be executed if it exists \ 
- `$fish_pid` and `$last_pid` are available as replacements for `%self` and `%last`.

### New features in commands
- `alias` has a new `--save` option to save the generated function immediately \ 
- `bind` has a new `--silent` option to ignore bind requests for named keys not \ 
available under the current terminal (#4188, #4431).
- `complete` has a new `--keep-order` option to show the provided or \ 
dynamically-generated argument list in the same order as specified, rather than \ 
alphabetically (#361).
- `exec` prompts for confirmation if background jobs are running.
- `funced` has a new `--save` option to automatically save the edited function \ 
after successfully editing (#4668).
- `functions` has a new ` --handlers` option to show functions registered as \ 
event handlers (#4694).
- `history search` supports globs for wildcard searching (#3136) and has a new \ 
`--reverse` option to show entries from oldest to newest (#4375).
- `jobs` has a new `--quiet` option to silence the output.
- `read` has a new `--delimiter` option for splitting input into arrays (#4256).
- `read` writes directly to stdout if called without arguments (#4407).
- `read` can now read individual lines into separate variables without consuming \ 
the input in its entirety via the new `/--line` option.
- `set` has new `--append` and `--prepend` options (#1326).
- `set` has a new `--show` option to show lots of information about variables \ 
- `string match` with an empty pattern and `--entire` in glob mode now matches \ 
everything instead of nothing (#4971).
- `string split` supports a new `--no-empty` option to exclude empty strings \ 
from the result (#4779).
- `string` has new subcommands `split0` and `join0` for working with \ 
NUL-delimited output.
- `string` no longer stops processing text after NUL characters (#4605)
- `string escape` has a new `--style regex` option for escaping strings to be \ 
matched literally in `string` regex operations.
- `test` now supports floating point values in numeric comparisons.

### Interactive improvements
- A pipe at the end of a line now allows the job to continue on the next line \ 
- Italics and dim support out of the box on macOS for Terminal.app and iTerm (#4436).
- `cd` tab completions no longer descend into the deepest unambiguous path (#4649).
- Pager navigation has been improved. Most notably, moving down now wraps \ 
around, moving up from the commandline now jumps to the last element and moving \ 
right and left now reverse each other even when wrapping around (#4680).
- Typing normal characters while the completion pager is active no longer shows \ 
the search field. Instead it enters them into the command line, and ends paging \ 
- A new input binding `pager-toggle-search` toggles the search field in the \ 
completions pager on and off. By default, this is bound to Ctrl-S.
- Searching in the pager now does a full fuzzy search (#5213).
- The pager will now show the full command instead of just its last line if the \ 
number of completions is large (#4702).
- Abbreviations can be tab-completed (#3233).
- Tildes in file names are now properly escaped in completions (#2274).
- Wrapping completions (from `complete --wraps` or `function --wraps`) can now \ 
inject arguments. For example, `complete gco --wraps 'git checkout'` now works \ 
properly (#1976). The `alias` function has been updated to respect this \ 
- Path completions now support expansions, meaning expressions like `python \ 
~/<TAB>` now provides file suggestions just like any other relative or \ 
absolute path. (This includes support for other expansions, too.)
- Autosuggestions try to avoid arguments that are already present in the command \ 
- Notifications about crashed processes are now always shown, even in command \ 
substitutions (#4962).
- The screen is no longer reset after a BEL, fixing graphical glitches (#3693).
- vi-mode now supports ';' and ',' motions. This introduces new \ 
{forward,backward}-jump-till and repeat-jump{,-reverse} bind functions (#5140).
- The `*y` vi-mode binding now works (#5100).
- True color is now enabled in neovim by default (#2792).
- Terminal size variables (`$COLUMNS`/`$LINES`) are now updated before \ 
`fish_prompt` is called, allowing the prompt to react (#904).
- Multi-line prompts no longer repeat when the terminal is resized (#2320).
- `xclip` support has been added to the clipboard integration (#5020).
- The Alt-P keybinding paginates the last command if the command line is empty.
- `$cmd_duration` is no longer reset when no command is executed (#5011).
- Deleting a one-character word no longer erases the next word as well (#4747).
- Token history search (Alt-Up) omits duplicate entries (#4795).
- The `fish_escape_delay_ms` timeout, allowing the use of the escape key both on \ 
its own and as part of a control sequence, was applied to all control \ 
characters; this has been reduced to just the escape key.
- Completing a function shows the description properly (#5206).
- Added completions for
  - `ansible`, including `ansible-galaxy`, `ansible-playbook` and \ 
`ansible-vault` (#4697)
  - `bb-power` (#4800)
  - `bd` (#4472)
  - `bower`
  - `clang` and `clang++` (#4174)
  - `conda` (#4837)
  - `configure` (for autoconf-generated files only)
  - `curl`
  - `doas` (#5196)
  - `ebuild` (#4911)
  - `emaint` (#4758)
  - `eopkg` (#4600)
  - `exercism` (#4495)
  - `hjson`
  - `hugo` (#4529)
  - `j` (from autojump #4344)
  - `jbake` (#4814)
  - `jhipster` (#4472)
  - `kitty`
  - `kldload`
  - `kldunload`
  - `makensis` (#5242)
  - `meson`
  - `mkdocs` (#4906)
  - `ngrok` (#4642)
  - OpenBSD's `pkg_add`, `pkg_delete`, `pkg_info`, `pfctl`, `rcctl`, `signify`, \ 
and `vmctl` (#4584)
  - `openocd`
  - `optipng`
  - `opkg` (#5168)
  - `pandoc` (#2937)
  - `port` (#4737)
  - `powerpill` (#4800)
  - `pstack` (#5135)
  - `serve` (#5026)
  - `ttx`
  - `unzip`
  - `virsh` (#5113)
  - `xclip` (#5126)
  - `xsv`
  - `zfs` and `zpool` (#4608)
- Lots of improvements to completions (especially `darcs` (#5112), `git`, `hg` \ 
and `sudo`).
- Completions for `yarn` and `npm` now require the `all-the-package-names` NPM \ 
package for full functionality.
- Completions for `bower` and `yarn` now require the `jq` utility for full \ 
- Improved French translations.

### Other fixes and improvements
- Significant performance improvements to `abbr` (#4048), setting variables \ 
(#4200, #4341), executing functions, globs (#4579), `string` reading from \ 
standard input (#4610), and slicing history (in particular, `$history[1]` for \ 
the last executed command).
- Fish's internal wcwidth function has been updated to deal with newer Unicode, \ 
and the width of some characters can be configured via the \ 
`fish_ambiguous_width` (#5149) and `fish_emoji_width` (#2652) variables. \ 
Alternatively, a new build-time option INTERNAL_WCWIDTH can be used to use the \ 
system's wcwidth instead (#4816).
- `functions` correctly supports `-d` as the short form of `--description`. (#5105)
- `/etc/paths` is now parsed like macOS' bash `path_helper`, fixing $PATH order \ 
(#4336, #4852) on macOS.
- Using a read-only variable in a `for` loop produces an error, rather than \ 
silently producing incorrect results (#4342).
- The universal variables filename no longer contains the hostname or MAC \ 
address. It is now at the fixed location `.config/fish/fish_variables` (#1912).
- Exported variables in the global or universal scope no longer have their \ 
exported status affected by local variables (#2611).
- Major rework of terminal and job handling to eliminate bugs (#3805, #3952, \ 
#4178, #4235, #4238, #4540, #4929, #5210).
- Improvements to the manual page completion generator (#2937, #4313).
- `suspend --force` now works correctly (#4672).
- Pressing Ctrl-C while running a script now reliably terminates fish (#5253).

### For distributors and developers
- fish ships with a new build system based on CMake. CMake 3.2 is the minimum \ 
required version. Although the autotools-based Makefile and the Xcode project \ 
are still shipped with this release, they will be removed in the near future. \ 
All distributors and developers are encouraged to migrate to the CMake build.
- Build scripts for most platforms no longer require bash, using the standard sh \ 
- The `hostname` command is no longer required for fish to operate.
   2018-07-18 02:06:25 by Joerg Sonnenberger | Files touched by this commit (168)
Log message:
Mark packages that require C++03 (or the GNU variants) if they fail with
C++14 default language.
   2017-12-30 06:35:54 by Maya Rashish | Files touched by this commit (4) | Package updated
Log message:
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 \ 

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 \ 
- `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 \ 

## 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-10-30 12:45:14 by Jonathan Perkin | Files touched by this commit (6)
Log message:
fish: Unbreak build on non-NetBSD.