Git Mailing List Archive mirror
 help / color / mirror / Atom feed
* Re: "git commit -m" bug
       [not found] <5C7CF0D9-4C6F-4207-BA4B-8AC9B472BD75@apple.com>
@ 2023-06-30 14:17 ` Konstantin Ryabitsev
  2023-06-30 17:38   ` Linus Arver
  0 siblings, 1 reply; 2+ messages in thread
From: Konstantin Ryabitsev @ 2023-06-30 14:17 UTC (permalink / raw)
  To: Ruben Ticehurst-James; +Cc: git, git-security

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: "git commit -m" bug
  2023-06-30 14:17 ` "git commit -m" bug Konstantin Ryabitsev
@ 2023-06-30 17:38   ` Linus Arver
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Arver @ 2023-06-30 17:38 UTC (permalink / raw)
  To: Konstantin Ryabitsev, Ruben Ticehurst-James; +Cc: git, git-security

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-30 17:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <5C7CF0D9-4C6F-4207-BA4B-8AC9B472BD75@apple.com>
2023-06-30 14:17 ` "git commit -m" bug Konstantin Ryabitsev
2023-06-30 17:38   ` Linus Arver

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).