Fix tests with new opt-in quoting

This commit is contained in:
Maxime Coste 2019-06-23 12:03:40 +10:00
parent 4b7b5d077c
commit c9858bb6d1
2 changed files with 3 additions and 3 deletions

View File

@ -23,8 +23,8 @@ main() {
exec -with-hooks <c-l> exec -with-hooks <c-l>
eval -buffer *debug* write debug eval -buffer *debug* write debug
nop %sh{ nop %sh{
printf %s\\n "$kak_selections" > selections printf %s\\n "$kak_quoted_selections" > selections
printf %s\\n "$kak_selections_desc" > state printf %s\\n "$kak_quoted_selections_desc" > state
} }
write out write out
quit! quit!

View File

@ -1,6 +1,6 @@
declare-option str-list my_list 'foo' 'bar' '''foo''bar''' declare-option str-list my_list 'foo' 'bar' '''foo''bar'''
evaluate-commands %sh{ evaluate-commands %sh{
eval set -- $kak_opt_my_list eval set -- $kak_quoted_opt_my_list
for elem; do for elem; do
echo exec "'i$(printf %s "$elem" | sed -e s/\'/\'\'/g)<ret><esc>'" echo exec "'i$(printf %s "$elem" | sed -e s/\'/\'\'/g)<ret><esc>'"
done done