1 # spec/ysh-func
2
3 ## our_shell: ysh
4
5 #### shSplit() respects IFS
6
7 var s = ' aa a bb b '
8
9 argv.py @[shSplit(s)]
10
11 setvar IFS = 'a'
12
13 argv.py @[shSplit(s)]
14
15 setvar IFS = 'b'
16
17 argv.py @[shSplit(s)]
18
19 ## STDOUT:
20 ['aa', 'a', 'bb', 'b']
21 [' ', '', ' ', ' bb b ']
22 [' aa a ', '', ' ', ' ']
23 ## END
24