-
Notifications
You must be signed in to change notification settings - Fork 146
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
[BUG] Ampersand mangled when used in an ARG #412
Comments
@chriswells0 has this one been fixed?? if so what PR / branch? |
Doesn't look to be fixed. Here is a sample ARG NAME
CMD echo "My name is $NAME" > /root/my-name
CMD cat /root/my-name Running it has the following result:
|
@michael-o this bug is really old. Is it still an issue??? Trying to clean up bugs and figure out what we have left to do. |
Let me check... |
[MANDATORY] Describe the bug [MANDATORY]
When a Bastillefile template receives an
ARG
value with an ampersand (&
) it is mangled down the line bysed(1)
because it it not escaped and cannot be escaped.[MANDATORY] Bastille and FreeBSD version (paste
bastille -v && freebsd-version -kru
output)0.8.20210115
12.2-STABLE
12.2-STABLE
12.2-STABLE
[MANDATORY] How did you install bastille? (port/pkg/git)
ports
[optional] Steps to reproduce?
Call a template:
template
ldadw/base-complete
:template
ldadw/root-config
:Running Bastille with
-x
shows:manpage says:
So I tried it, same result:
[optional] Expected behavior
The arg value to be passed as-is or escape chars for
sed(1)
to be respected.[optional] Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: