mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 15:14:44 +00:00
tests, CHANGELOG: regex-easyesc
Oops, missed these the first time around.
This commit is contained in:
parent
edc8d5d7a3
commit
47798510bd
4 changed files with 4 additions and 4 deletions
|
@ -13,7 +13,7 @@
|
|||
- Error messages no longer include a (rather large) help summary and the stacktrace has been shortened (#3404, #5434).
|
||||
- fish now underlines every valid entered path instead of just the last one.
|
||||
- The `--debug` option has been extended to allow specifying categories. Categories may be listed via `fish --print-debug-categories`.
|
||||
- `string replace` had an additional round of escaping in the replacement (not the match!), so escaping backslashes would require `string replace -ra '([ab])' '\\\\\\\$1' a`. A new feature flag `string-replace-fewer-backslashes` can be used to disable this, so that it becomes `string replace -ra '([ab])' '\\\\$1' a` (#5556).
|
||||
- `string replace` had an additional round of escaping in the replacement (not the match!), so escaping backslashes would require `string replace -ra '([ab])' '\\\\\\\$1' a`. A new feature flag `regex-easyesc` can be used to disable this, so that it becomes `string replace -ra '([ab])' '\\\\$1' a` (#5556).
|
||||
- Some parser errors did not set `$status` to non-zero. This has been corrected (b2a1da602f79878f4b0adc4881216c928a542608).
|
||||
- `string` has a new `collect` subcommand that disables newline-splitting on its input. This is meant to be used as the end of a command substitution pipeline to produce a single output argument potentially containing internal newlines, such as `set output (some-cmd | string collect)`. Any trailing newlines are trimmed, just like `"$(cmd)"` substitution in sh. It also supports a `--no-trim-newlines` flag to disable trailing newline trimming, which may be useful when doing something like `set contents (cat filename | string collect -N)` (#159).
|
||||
- More of the documentation, including the tutorial, is now available as man pages as well.
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#RUN: %fish --features 'no-string-replace-fewer-backslashes' -C 'string replace -ra "\\\\" "\\\\\\\\" -- "a\b\c"'
|
||||
#RUN: %fish --features 'no-regex-easyesc' -C 'string replace -ra "\\\\" "\\\\\\\\" -- "a\b\c"'
|
||||
# CHECK: a\b\c
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#RUN: %fish --features 'string-replace-fewer-backslashes' -C 'string replace -ra "\\\\" "\\\\\\\\" -- "a\b\c"'
|
||||
#RUN: %fish --features 'regex-easyesc' -C 'string replace -ra "\\\\" "\\\\\\\\" -- "a\b\c"'
|
||||
# CHECK: a\\b\\c
|
||||
|
|
|
@ -6,7 +6,7 @@ test_function
|
|||
# Future Feature Flags
|
||||
stderr-nocaret off 3.0 ^ no longer redirects stderr
|
||||
qmark-noglob off 3.0 ? no longer globs
|
||||
string-replace-fewer-backslashes off 3.1 string replace -r needs fewer backslashes in the replacement
|
||||
regex-easyesc off 3.1 string replace -r needs fewer \'s
|
||||
1
|
||||
2
|
||||
|
||||
|
|
Loading…
Reference in a new issue