Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Discussion] Is there a way to escape # in distrobox.ini? #956

Closed
jkuester opened this issue Sep 7, 2023 · 0 comments
Closed

[Discussion] Is there a way to escape # in distrobox.ini? #956

jkuester opened this issue Sep 7, 2023 · 0 comments
Labels
question Further information is requested

Comments

@jkuester
Copy link

jkuester commented Sep 7, 2023

Is there a way that I missed that allows for escaping the comment character (#) when used in the middle of a quoted string in a distrobox.ini file?

I have this distrobox.ini file:

[my_debian]
image=debian:12
additional_packages="chromium git python3-pip python3-setuptools python3-wheel xsltproc"
init_hooks="sudo python3 -m pip install --break-system-packages git+https://github.com/medic/pyxform.git@medic-conf-1.17#egg=pyxform-medic"

Running the distrobox-assemble create command in the directory with that file results in the following error:

$ distrobox-assemble create
/tmp/tmp.m2ufOShp04: line 3: unexpected EOF while looking for matching `"'
 - Creating my_debian... 
Creating 'my_debian' using image debian:12       [ OK ]
Distrobox 'my_debian' successfully created.
To enter, run:

distrobox enter my_debian

Obviously, removing the # from my init_hooks makes the error go away (but breaks the command). I tried escaping it using \#, but that did not resolve the issue.

@jkuester jkuester added the question Further information is requested label Sep 7, 2023
89luca89 added a commit that referenced this issue Sep 16, 2023
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant