mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-23 04:51:16 -03:00
implement string escape --style=xxx
We need a way to encode arbitrary strings into valid fish variable names. It would also be nice if we could convert strings to valid URLs without using the slow and hard to understand `__fish_urlencode` function. In particular, eliminating the need to manipulate the locale. Fixes #4150
This commit is contained in:
@@ -5,7 +5,7 @@ string match: ^
|
||||
|
||||
# string invalidarg
|
||||
string: Subcommand 'invalidarg' is not valid
|
||||
Standard input (line 183):
|
||||
Standard input (line 215):
|
||||
string invalidarg; and echo "unexpected exit 0" >&2
|
||||
^
|
||||
|
||||
@@ -29,6 +29,6 @@ string repeat: Expected argument
|
||||
|
||||
# string repeat -l fakearg 2>&1
|
||||
string repeat: Unknown option '-l'
|
||||
Standard input (line 284):
|
||||
Standard input (line 316):
|
||||
string repeat -l fakearg
|
||||
^
|
||||
|
||||
Reference in New Issue
Block a user