# Re: "git commit -m" bug

2 messages from 2023-06-30 to 2023-06-30. Participants: Konstantin Ryabitsev, Linus Arver.
Thread: https://gitlist.dev/t/59933

## Konstantin Ryabitsev, 2023-06-30 14:17

Subject: Re: "git commit -m" bug
Message-ID: <20230630-staid-welcome-howl-da79f0@meerkat>
URL: https://gitlist.dev/e/20230630-staid-welcome-howl-da79f0%40meerkat
In-Reply-To: <5C7CF0D9-4C6F-4207-BA4B-8AC9B472BD75@apple.com>

```
On Fri, Jun 30, 2023 at 02:30:55PM +0100, 'Ruben Ticehurst-James' via Git Security wrote:
> Hello I am reporting a (potential) bug in git: 
> 
> when I use triple exclamation marks in a commit message (for an example):
> 
> git commit -m “WORKING!!! WOOOO” (command above was git add .)
> 
> or 
> 
> git commit -m "Checking !!! Git” (command above was ls)
> 
> It will instead copy over the last command I used. The two above commands produce this output: 

This is done by your shell (bash). For example, try this:

echo "hello"
echo "hello!!"

-K

```

## Linus Arver, 2023-06-30 17:38

Subject: Re: "git commit -m" bug
Message-ID: <owly1qhs97fc.fsf@fine.c.googlers.com>
URL: https://gitlist.dev/e/owly1qhs97fc.fsf%40fine.c.googlers.com
In-Reply-To: <20230630-staid-welcome-howl-da79f0@meerkat>

```
Konstantin Ryabitsev <konstantin@linuxfoundation.org> writes:

> On Fri, Jun 30, 2023 at 02:30:55PM +0100, 'Ruben Ticehurst-James' via Git Security wrote:
>> Hello I am reporting a (potential) bug in git: 
>> 
>> when I use triple exclamation marks in a commit message (for an example):
>> 
>> git commit -m “WORKING!!! WOOOO” (command above was git add .)
>> 
>> or 
>> 
>> git commit -m "Checking !!! Git” (command above was ls)
>> 
>> It will instead copy over the last command I used. The two above commands produce this output: 
>
> This is done by your shell (bash). For example, try this:
>
> echo "hello"
> echo "hello!!"
>
> -K

@Ruben: For completeness, if you use single quotes the exclamantion
points should stay as-is (double quotes expand variables and special
things like `!!`, but single quotes do not).

Cheers,
Linus

```
