mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +00:00
parent
0ebff8c516
commit
55bef3cd2e
5 changed files with 8 additions and 20 deletions
|
@ -4,17 +4,20 @@ This section is for changes merged to the `major` branch that are not also merge
|
||||||
## Deprecations
|
## Deprecations
|
||||||
- The `IFS` variable is deprecated and will be removed in fish 4.0 (#4156).
|
- The `IFS` variable is deprecated and will be removed in fish 4.0 (#4156).
|
||||||
|
|
||||||
|
## Notable non-backward compatible changes
|
||||||
|
- `.` command no longer exists -- use `source` (#4294).
|
||||||
|
- `read` now requires at least one var name (#4220).
|
||||||
|
- `set x[1] x[2] a b` is no longer valid syntax (#4236).
|
||||||
|
|
||||||
## Notable fixes and improvements
|
## Notable fixes and improvements
|
||||||
- `read` has a new `--delimiter` option as a better alternative to the `IFS` variable (#4256).
|
- `read` has a new `--delimiter` option as a better alternative to the `IFS` variable (#4256).
|
||||||
- `set` has a new `--append` and `--prepend` option (#1326).
|
- `set` has a new `--append` and `--prepend` option (#1326).
|
||||||
- `set` has a new `--show` option to show lots of information about variables (#4265).
|
- `set` has a new `--show` option to show lots of information about variables (#4265).
|
||||||
- `set x[1] x[2] a b` is no longer valid syntax (#4236).
|
|
||||||
- `complete` now has a `-k` and `--keep-order` option to keep the order of the OPTION_ARGUMENTS (#361).
|
- `complete` now has a `-k` and `--keep-order` option to keep the order of the OPTION_ARGUMENTS (#361).
|
||||||
- Local exported (`set -lx`) vars are now visible to functions (#1091).
|
- Local exported (`set -lx`) vars are now visible to functions (#1091).
|
||||||
|
- `abbr` has been reimplemented to be faster. This means the old `fish_user_abbreviations` variable is ignored (#4048).
|
||||||
|
|
||||||
## Other significant changes
|
## Other significant changes
|
||||||
- `read` now requires at least one var name (#4220).
|
|
||||||
- `abbr` has been reimplemented to be faster. This means the old `fish_user_abbreviations` variable is ignored (#4048).
|
|
||||||
- Command substitution output is now limited to 10 MB by default (#3822).
|
- Command substitution output is now limited to 10 MB by default (#3822).
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -169,7 +169,7 @@ TEST_IN := $(wildcard tests/test*.in)
|
||||||
#
|
#
|
||||||
# Files in ./share/completions/
|
# Files in ./share/completions/
|
||||||
#
|
#
|
||||||
COMPLETIONS_DIR_FILES := $(wildcard share/completions/*.fish) share/completions/..fish
|
COMPLETIONS_DIR_FILES := $(wildcard share/completions/*.fish)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Files in ./share/functions/
|
# Files in ./share/functions/
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
complete -c . -x -a "(__fish_complete_suffix .fish)"
|
|
|
@ -217,20 +217,6 @@ function __fish_on_interactive --on-event fish_prompt
|
||||||
functions -e __fish_on_interactive
|
functions -e __fish_on_interactive
|
||||||
end
|
end
|
||||||
|
|
||||||
# "." command for compatibility with old fish versions.
|
|
||||||
function . --description 'Evaluate contents of file (deprecated, see "source")' --no-scope-shadowing
|
|
||||||
if begin
|
|
||||||
test (count $argv) -eq 0
|
|
||||||
# Uses tty directly, as isatty depends on "."
|
|
||||||
and tty 0>&0 >/dev/null
|
|
||||||
end
|
|
||||||
echo "source: '.' command is deprecated, and doesn't work with STDIN anymore. Did you mean 'source' or './'?" >&2
|
|
||||||
return 1
|
|
||||||
else
|
|
||||||
source $argv
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Set the locale if it isn't explicitly set. Allowing the lack of locale env vars to imply the
|
# Set the locale if it isn't explicitly set. Allowing the lack of locale env vars to imply the
|
||||||
# C/POSIX locale causes too many problems. Do this before reading the snippets because they might be
|
# C/POSIX locale causes too many problems. Do this before reading the snippets because they might be
|
||||||
# in UTF-8 (with non-ASCII characters).
|
# in UTF-8 (with non-ASCII characters).
|
||||||
|
|
|
@ -89,7 +89,7 @@ static const struct block_lookup_entry block_lookup[] = {
|
||||||
{TOP, 0, TOP_BLOCK},
|
{TOP, 0, TOP_BLOCK},
|
||||||
{SUBST, 0, SUBST_BLOCK},
|
{SUBST, 0, SUBST_BLOCK},
|
||||||
{BEGIN, L"begin", BEGIN_BLOCK},
|
{BEGIN, L"begin", BEGIN_BLOCK},
|
||||||
{SOURCE, L".", SOURCE_BLOCK},
|
{SOURCE, L"source", SOURCE_BLOCK},
|
||||||
{EVENT, 0, EVENT_BLOCK},
|
{EVENT, 0, EVENT_BLOCK},
|
||||||
{BREAKPOINT, L"breakpoint", BREAKPOINT_BLOCK},
|
{BREAKPOINT, L"breakpoint", BREAKPOINT_BLOCK},
|
||||||
{(block_type_t)0, 0, 0}};
|
{(block_type_t)0, 0, 0}};
|
||||||
|
|
Loading…
Reference in a new issue