Re: [PATCH v6 1/1] userdiff: extend Bash pattern to cover more shell function forms
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 17, 2025, 13:09 UTC
- Message-ID
- <xmqq8qmvs7sd.fsf@gitster.g>
- In-Reply-To
- <8343694f-6e05-43c5-862a-63702314760e@kdbg.org>
Johannes Sixt <j6t@kdbg.org> writes:
Show 7 quoted lines
>> +y=<RED>3.14<RESET><GREEN>2.71<RESET> >> +z=<RED>.5<RESET><GREEN>.75<RESET> > > When do decimal numbers occur in shell scripts? Wouldn't it be more > often the case that a fullstop is part of a regular expression or a file > name or version number that happens to be surrounded by numbers? In that > case, we would prefer to capture the digit sequences as separate words.
Sorry but I am confused.
Do you want a filename "sample.3gp" treated as having separate parts, "sample", ".3", and "gp", instead of a single word?