mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Park (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MESOS-5162) Commit message hook behaves incorrectly when a message includes a "*".
Date Sun, 10 Apr 2016 06:38:25 GMT

     [ 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)

Mime
View raw message