2014-08-21 12:19:08 +08:00
|
|
|
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
|
2018-11-23 09:52:07 +08:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Slices
|
2014-08-21 12:19:08 +08:00
|
|
|
1 baz quux fooest
|
|
|
|
2 baz quux
|
|
|
|
1 prefixbaz quux fooest
|
|
|
|
2 prefixbaz prefixquux
|
2018-04-27 04:42:48 +08:00
|
|
|
0
|
2017-04-08 03:48:44 +08:00
|
|
|
2 fooest
|
|
|
|
0
|
2018-04-27 04:42:48 +08:00
|
|
|
0
|
2017-04-08 03:48:44 +08:00
|
|
|
2 fooest
|
|
|
|
0
|
2018-09-15 17:03:45 +08:00
|
|
|
0
|
|
|
|
# foo =
|
2017-04-08 03:48:44 +08:00
|
|
|
1
|
|
|
|
0
|
|
|
|
1
|
|
|
|
0
|
|
|
|
1
|
|
|
|
0
|
2014-08-21 13:01:24 +08:00
|
|
|
1
|
|
|
|
0
|
|
|
|
1
|
|
|
|
0
|
2018-09-15 17:03:45 +08:00
|
|
|
# foo = a b c
|
|
|
|
0
|
2017-06-16 20:17:17 +08:00
|
|
|
0
|
|
|
|
0
|
|
|
|
0
|
2018-09-15 17:03:45 +08:00
|
|
|
# foo = a
|
2018-04-27 04:42:48 +08:00
|
|
|
0
|
2017-04-08 03:48:44 +08:00
|
|
|
|
2018-11-23 09:52:07 +08:00
|
|
|
out2
|
|
|
|
out2 out1
|
2017-08-04 12:37:02 +08:00
|
|
|
|
2018-10-11 05:26:29 +08:00
|
|
|
####################
|
|
|
|
# Percent self
|
|
|
|
%selfNOT NOT%self %self %self %self
|
|
|
|
All digits: 0
|
|
|
|
|
2017-08-04 12:37:02 +08:00
|
|
|
####################
|
|
|
|
# Catch your breath
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Test tilde expansion
|
2018-10-01 07:34:01 +08:00
|
|
|
|
|
|
|
####################
|
2018-10-07 11:22:35 +08:00
|
|
|
# Test path variables
|
|
|
|
TEST_DELIMITER: one two three one two three
|
|
|
|
TEST_DELIMITER_PATH: one two three one:two:three
|
|
|
|
Not a path: ONE:TWO:THREE 1
|
|
|
|
As a path: ONE:TWO:THREE 3
|
|
|
|
Appended path: ONE:TWO:THREE:FOUR 4
|
|
|
|
Back to normal variable: ONE TWO THREE FOUR 4
|