zserge / luash

Tiny lua module to write shell scripts with lua (inspired by Python's sh module)
MIT License
317 stars 31 forks source link

Added double quotes to string values when using arguments as a table. #5

Closed agambier closed 7 years ago

agambier commented 8 years ago

Hello,

I forked your luash repo to change a bit the function arg(k, a).

When using arguments as a table with space inside values, only the first word was interpreted. Calling yad =>yad( { title='New title', text='A text with spaces' } ) will cause that only 'New' and 'A' are displayed by yad.

Now with my change yad displays the strings the right way.

Could you please merge this commit if you think it won't break anything else.

Thanks Alex.