How to pass a pasta argument containing a comma when using --network=pasta ?
#27316
-
|
This is more of a curious question. I don't have any specific use case in mind. Is is possible to pass pasta argument containing a comma when using The problem is that Quote: Experiment Is it possible to achieve I did an experiment where I added a backslash in front of the comma.
result: In the output from I had hoped to see Side note 1: There was a question about this in the podman chat https://discord.com/channels/852634929845239818/852634929845239824/1428451075069055097 Side note 2: podman/pkg/specgen/namespaces.go Line 394 in f2a559a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Yeah it is not possible via cli, I guess you can make it work via containers.conf. Adding escaping would be required though IMO it makes the thing much more awkward and complicates the parsing a fair bit. Is there actually a strong need for comma in pasta(1) arguments? You can always specific -T multiple times for several ports which should have the same effect? cc @sbrivio-rh |
Beta Was this translation helpful? Give feedback.
Yeah it is not possible via cli, I guess you can make it work via containers.conf.
Adding escaping would be required though IMO it makes the thing much more awkward and complicates the parsing a fair bit. Is there actually a strong need for comma in pasta(1) arguments? You can always specific -T multiple times for several ports which should have the same effect?
cc @sbrivio-rh