[
https://issues.apache.org/jira/browse/MESOS-5162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Park updated MESOS-5162:
--------------------------------
Description:
If there is a "\*" in a commit message (there often is when we have bulleted
lists), due to the current use of {{echo $LINE}}, the {{$LINE}} gets expanded
with a "*" in it, which becomes a matcher in bash and therefore subsequently
gets expanded into the list of files/directories in the current directory.
In order to avoid this mess, we need to wrap such variables in quotes, like so:
{{echo "$LINE"}}.
was:
If there is a "*" in a commit message (there often is when we have bulleted
lists), due to the current use of {{echo $LINE}}, the {{$LINE}} gets expanded
with a "*" in it, which becomes a matcher in bash and therefore subsequently
gets expanded into the list of files/directories in the current directory.
In order to avoid this mess, we need to wrap such variables in quotes, like so:
{{echo "$LINE"}}.
> Commit message hook behaves incorrectly when a message includes a "*".
> ----------------------------------------------------------------------
>
> Key: MESOS-5162
> URL: https://issues.apache.org/jira/browse/MESOS-5162
> Project: Mesos
> Issue Type: Bug
> Reporter: Michael Park
> Assignee: Michael Park
> Labels: mesosphere
>
> If there is a "\*" in a commit message (there often is when we have bulleted
> lists), due to the current use of {{echo $LINE}}, the {{$LINE}} gets expanded
> with a "*" in it, which becomes a matcher in bash and therefore subsequently
> gets expanded into the list of files/directories in the current directory.
> In order to avoid this mess, we need to wrap such variables in quotes, like
> so: {{echo "$LINE"}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)