-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

intrigeri:
>>> Buggy handling of wrapped commands whose arguments contain
>>> spaces
> [...]
>> Confirmed. I don't know how to fix it. Ideas?
> 
> The answer might emerge from that question of mine:
> 
>>> (is going through getopt necessary for the wrapped command at 
>>> all?):
> 
> If the answer is "yes", then I suggest having a look at the
> various options offered by getopt for whitespace / command-line
> words parsing.

The answer is: I don't know. I don't know the alternatives.

Afaik getopt does not support multiple arguments, i.e. -i ip -p port.
Only -i ip -o. (-o just as an option flag without additional argument.)

That's why getopts is being used. On the other hand, getopts does not
have options for whitespace...

I haven't found any similar bash scripts. Search results are more
questions than answers. Not sure if it's possible with bash at all.

It's really difficult for me.

And what's strange... When a wrapper is being used, for example a gpg
wrapper [1], the relevant part:
/usr/local/bin/uwt -t 5 -i "$ip" -p "$port" -c "/usr/bin/gpg $*"

It works.

If you could help with it, that'd be great.

[1]
https://github.com/adrelanos/aos/blob/a07832e2dcee34cc48f896fae5a7f7c2bc64e298/aos_shared/usr/local/bin/gpg
-----BEGIN PGP SIGNATURE-----

iQIbBAEBCgAGBQJQRlz2AAoJEJwTGtNxOq7v7n0P91v8MW9Ih6Q8Nxd8pjZEyN+Y
xlI+IwNb83XBYmYHgkz1ga5izR9xFohwWdsHIt8Hrh/iiiv0TUgjn+dr+3ZaYSaJ
PQ4pmDHun9BAlX0vX1xQ4+ukVhv4kaQWiFP318Tms2YdltGMIOlcGfSeL+D1DMcL
anfdpKyhwnzSfIHfyYBpOZDSuUCxdFYya8lsTyf5vkdkM7+dpb1ctDIkoQZoE/Tc
UnSnZvnqZ9RDVrL+lqT9FKrjZktMu5z8W584dVOd59kNA9UN7LzOzfRdhZwdoSH8
l28GnX+H3l9FX6uItTOA3Ld6G+KjLhe+zwpcc/aJ09kCl9M5V5psIIf3DzS6tqtZ
D+RAZt8W3Gys4zove5rzz9ytFlFWhsfFaTiWS5r69kRyMhPjJ45mp1UTMAUQdY+Z
oPF1I/9xei7Wvfairzo9fvKb+1R0KFjk/bxUkVqluLqb7j41joUkgYWb+JFDCyRL
qL56FrjR4I2czmb0wYzCEozv1+5K2f2eduY0DmN6zNexpMollaTEAsS6CD6tm/ir
SKoOXt6bS1phNtInNQhqSi3YJ65OtiVJ9V/tFr2WxZ/IJGA1GBkjnx3MBA9nywpf
nHeBi6L0jrIdNNh9LqvtrpRHxm/4Mp536jOT+bKm/uQdtX1z1vHVXcmWpYhXRnbO
0KChCOGG+0cJECF62cY=
=t+he
-----END PGP SIGNATURE-----
_______________________________________________
tails-dev mailing list
[email protected]
https://mailman.boum.org/listinfo/tails-dev

Reply via email to