You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In files that are processed by FilteredFile, and in lines which are processed by Util.replaceVariables(), characters immediately preceding the end of line get eaten if they are a prefix of the opening or closing token (by default, [[ and ]]).
E.g., a postinst with the following content:
#!/bin/sh
if [ -e some_file ]
then
echo blabla
fi
gets mangled into
#!/bin/sh
if [ -e some_file
then
echo blabla
fi
(notice the missing closing brace).
Reason seems to be Utils.replaceVariables(), where characters that match opening and closing braces are withheld from output until it is determined whether a complete token is read. On end of line, these characters are not flushed.
Observed in 1.1.1 Workaround for me: Don't close lines with a ] character.
The text was updated successfully, but these errors were encountered:
In files that are processed by FilteredFile, and in lines which are processed by Util.replaceVariables(), characters immediately preceding the end of line get eaten if they are a prefix of the opening or closing token (by default, [[ and ]]).
E.g., a postinst with the following content:
gets mangled into
(notice the missing closing brace).
Reason seems to be Utils.replaceVariables(), where characters that match opening and closing braces are withheld from output until it is determined whether a complete token is read. On end of line, these characters are not flushed.
Observed in 1.1.1
Workaround for me: Don't close lines with a ] character.
The text was updated successfully, but these errors were encountered: