Re: "git commit -m" bug
- From
- Linus Arver <linusa@google.com>
- Date
- Jun 30, 2023, 17:38 UTC
- Message-ID
- <owly1qhs97fc.fsf@fine.c.googlers.com>
- In-Reply-To
- <20230630-staid-welcome-howl-da79f0@meerkat>
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