Version: 1.3-20190211-1 [ Sorry for the late reply ]
On Fri, Mar 20, 2020 at 05:40:54PM -0400, Thomas Dickey wrote: > 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...). I have the same feeling, this issue was not important enough to make a backport. However, this is not the same as saying that a backport would have been unthinkable. It would have been just a matter of finding somebody willing to make the backport, which could be any Debian maintainer, not necessarily me. (I hope that you found a way to workaround this bug, either by making a backport for private use, or by just upgrading to Debian 10). Thanks a lot.