Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sed and xentools413



I also see problems building textproc/hunspell-de, but I don't understand the error:

sed -f ./bin/dic2iso < hunspell-capmain-plus_de_DE.tmp.unfiltered-list-expanded.tmp |sed "s/qq//g" | nl | hunspell `hunspell -h 2>&1 | grep -q "hunspell \\-i" && echo "-i latin1"` -d hunspell/de_DE_small -L > hunspell-capmain-plus_de_DE.tmp.unknown.tmp
sed "s/^ *\([0-9]*\)\t.*$/\1/" hunspell-capmain-plus_de_DE.tmp.unknown.tmp > hunspell-capmain-plus_de_DE.tmp.list-unknown-lines.tmp
sed: 1: "s/^ *\([0-9]*\)\t.*$/\1/": RE error: trailing backslash (\)

What is the trailing backslash in that regex?
 Thomas
 
On Mon, Mar 08, 2021 at 10:44:43AM -0500, Christos Zoulas wrote:
> We could do it this way -G (enable GNU), or have it on by default and add (-P disable gnu/posix mode).
> 
> christos
> 
> > On Mar 8, 2021, at 10:36 AM, Martin Husemann <martin%duskware.de@localhost> wrote:
> > 
> > On Mon, Mar 08, 2021 at 03:29:32PM -0000, Christos Zoulas wrote:
> >> Yes, we can turn on REG_GNU in regcomp in sed to support \s so that it behaves
> >> like gnused. Before it was silently ignoring the backslash.
> > 
> > Is this worth a sed command line switch (like -E) ?
> > 
> > Martin
> 




Home | Main Index | Thread Index | Old Index