Livejournal
Log in
Post
Friends
My journal
ocehb
Разница между флагами 'z' и 's' при разборе параметров
Apr 27, 2018 08:09
# str="AAA \"BBB CCC\" DDD 'EEE FFF' GGG"
# print -l ${(s. .)str}
AAA
"BBB
CCC"
DDD
'EEE
FFF'
GGG
# print -l ${(z)str}
AAA
"BBB CCC"
DDD
'EEE FFF'
GGG
zshell
Leave a comment
Previous post
Next post
Up