On Thu, Jun 20, 2019 at 01:02:03PM +0300, Alex Tsitsimpis wrote: > Package: dialog > Version: 1.3-20160828-2 > Severity: normal > > Dear Maintainer, > > There are cases where providing arguments to dialog using `--file' > results in failure but providing them directly in CLI works. It seems to > me that there is a string escaping problem. > > I bumped into this because I use python-dialog, which invokes dialog > with arguments passed using the `--file' argument. I started seeing > backslashes > in titles when colorizing them, and even in some cases dialog failed to > display widgets. > > The easiest way to reproduce it is the following: > > 1) Invoke dialog passing args to CLI: > $ dialog "--msgbox" "\"test\"" "0" "0" > * A message box is displayed with the string `"test"` in it. * > > 2) Invoke dialog using the --file argument: > $ cat args > "--msgbox" "\"test\"" "0" "0" > $ dialog --file args > Error: Expected at least 3 tokens for --msgbox, have 1. > Use --help to list options.
This is probably due to 2018/06/21 + modify dlg_string_to_argv() to change the quoting behavior to be more consistent with shell behavior (patch by Denilson Sa Maia). > It seems that version `1.3-20190211-1' from Buster works as expected in > this matter, so perhaps it should be backported to Stretch. Santiago's free to disagree, but reading the guidelines for bug severity and backports, it seems that the level of effort for a backport makes it unlikely to do except for really urgent bugs: https://www.debian.org/Bugs/Developer#severities https://backports.debian.org/Contribute/ (and the bug reporting guidelines don't seem to be geared toward requesting a backport...). -- Thomas E. Dickey <dic...@invisible-island.net> https://invisible-island.net ftp://ftp.invisible-island.net
signature.asc
Description: PGP signature