mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-28 04:03:39 +08:00
5947aa0171
This switches quoted expansion like "$foo" to use foo's delimiter instead of space. The delimiter is space for normal variables and colonf or path variables. Expansions like "$PATH" will now expand using ':'.
80 lines
735 B
Plaintext
80 lines
735 B
Plaintext
1
|
|
0
|
|
1 prefix
|
|
0
|
|
1
|
|
0
|
|
1 prefix
|
|
0
|
|
1
|
|
1
|
|
1 prefix
|
|
1 prefix
|
|
1
|
|
0
|
|
1 prefix
|
|
0
|
|
1
|
|
0
|
|
1 prefix
|
|
0
|
|
1 baz
|
|
1 baz
|
|
1 prefixbaz
|
|
1 prefixbaz
|
|
1 baz quux
|
|
2 baz quux
|
|
1 prefixbaz quux
|
|
2 prefixbaz prefixquux
|
|
1 baz quux fooer fooest
|
|
2 baz quux
|
|
1 prefixbaz quux fooer fooest
|
|
2 prefixbaz prefixquux
|
|
3 baz quux
|
|
3 prefixbaz prefixquux prefix
|
|
1 baz quux fooest
|
|
2 baz quux
|
|
1 prefixbaz quux fooest
|
|
2 prefixbaz prefixquux
|
|
0
|
|
2 fooest
|
|
0
|
|
0
|
|
2 fooest
|
|
0
|
|
0
|
|
# foo =
|
|
1
|
|
0
|
|
1
|
|
0
|
|
1
|
|
0
|
|
1
|
|
0
|
|
1
|
|
0
|
|
# foo = a b c
|
|
0
|
|
0
|
|
0
|
|
0
|
|
# foo = a
|
|
0
|
|
|
|
|
|
####################
|
|
# Percent self
|
|
%selfNOT NOT%self %self %self %self
|
|
All digits: 0
|
|
|
|
####################
|
|
# Catch your breath
|
|
|
|
####################
|
|
# Test tilde expansion
|
|
|
|
####################
|
|
# Test delimiters
|
|
one two three one:two:three
|