Le 26/02/2020 à 12:38, Thomas Seeling via blfs-support a écrit :
> Hallo Pierre,
> 
> I wanted to apologize for calling out in public what I thought was bugs
> in the script.

No prob. When I am wrong, I must be proven wrong, but not without arguing :)

> 
>> It replaces \S+ with [^\s"]+
> 
> 
> Usually I try to minimize the changes I do to other people's work so
> this was an unexpected way of "fixing" something and I clearly did not
> read it thoroughly enough as I should have.

Well, the problem is that usually, regexp are greedy (not sure about perl
ones), that is:
^ *leapfile\s+"?(\S+)"?
may return, for example, "/etc/ntp.leapseconds" (with the quotes) in $1, if
applied to the line:
leapfile "/etc/ntp.leapseconds"

Pierre

-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to