1 |
# TODO-deprecate: Code we want to get rid of!
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
shopt -p | grep simple_word
|
7 |
shopt --set oil:upgrade
|
8 |
shopt -p | grep simple_word
|
9 |
|
10 |
shopt --unset ysh:upgrade
|
11 |
shopt -p | grep simple_word
|
12 |
|
13 |
## STDOUT:
|
14 |
shopt -u simple_word_eval
|
15 |
shopt -s simple_word_eval
|
16 |
shopt -u simple_word_eval
|
17 |
## END
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
shopt --set parse_at
|
23 |
|
24 |
var x = %(one two)
|
25 |
echo @x
|
26 |
|
27 |
## STDOUT:
|
28 |
one two
|
29 |
## END
|
30 |
|
31 |
|
32 |
|
33 |
shopt --set ysh:upgrade
|
34 |
|
35 |
if ('foo42' ~ / <capture d+> /) {
|
36 |
echo $[_match(0)]
|
37 |
echo $[_group(0)]
|
38 |
}
|
39 |
|
40 |
## STDOUT:
|
41 |
42
|
42 |
42
|
43 |
## END
|