threads / bug / 59933

Re: "git commit -m" bug

Subject: Re: "git commit -m" bug

## tl;dr

2 messages between Jun 30, 2023 and Jun 30, 2023.

replies: 1people: 2as markdown or json

Konstantin Ryabitsev· Jun 30, 2023, 14:17 UTC · lore
On Fri, Jun 30, 2023 at 02:30:55PM +0100, 'Ruben Ticehurst-James' via Git Security wrote:
Show 11 quoted lines
> 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· Jun 30, 2023, 17:38 UTC · re: Konstantin Ryabitsev · lore
Konstantin Ryabitsev <konstantin@linuxfoundation.org> writes:
Show 19 quoted lines
> 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

← back to recent threads