kakoune/test/shell/list-syntax/rc

8 lines
225 B
Plaintext
Raw Normal View History

declare-option str-list my_list 'foo' 'bar' '''foo''bar'''
evaluate-commands %sh{
2019-06-23 04:03:40 +02:00
eval set -- $kak_quoted_opt_my_list
for elem; do
echo exec "'i$(printf %s "$elem" | sed -e s/\'/\'\'/g)<ret><esc>'"
done
}