freebsd-nq/contrib
Kyle Evans a4a801688c regex(3): Handle invalid {} constructs consistently and adjust tests
Currently, regex(3) exhibits the following wrong behavior as demonstrated
with sed:

 - echo "a{1,2,3}b" | sed -r "s/{/_/"     (1)
 - echo "a{1,2,3}b" | sed "s/\}/_/"       (2)
 - echo "a{1,2,3}b" | sed -r "s/{}/_/"    (3)

Cases (1) and (3) should throw errors but they actually succeed, and (2)
throws an error when it should match the literal '}'. The correct behavior
was decided by comparing to the behavior with the equivalent BRE (1)(3) or
ERE (2) and consulting POSIX, along with some reasonable evaluation.

Tests were also adjusted/added accordingly.

PR:		166861
Reviewed by:	emaste, ngie, pfg
Approved by:	emaste (mentor)
MFC after:	never
Differential Revision:	https://reviews.freebsd.org/D10315
2017-08-08 04:10:46 +00:00
..
amd
apr
apr-util
atf
binutils
blacklist
bmake
bsnmp
byacc
bzip2
com_err
compiler-rt o Replace __riscv__ with __riscv 2017-08-07 14:09:57 +00:00
cortex-strings
dialog
diff
dma
dtc
ee
elftoolchain o Replace __riscv__ with __riscv 2017-08-07 14:09:57 +00:00
expat
file
flex
gcc
gcclibs
gdb
gdtoa
gperf
hyperv/tools hyperv: Add VF bringup scripts and devd rules. 2017-07-31 07:18:15 +00:00
ipfilter loadpoolfile() implements a -R (NORESOLVE) option which is not listed 2017-08-05 06:46:06 +00:00
jemalloc o Replace __riscv__ with __riscv 2017-08-07 14:09:57 +00:00
ldns
ldns-host
less
libarchive MFV r321673: 2017-07-28 23:56:07 +00:00
libbegemot
libc-pwcache
libc-vis
libc++
libcxxrt
libdivsufsort
libexecinfo
libgnuregex
libpcap
libreadline
libstdc++
libucl
libxo Update from libxo-0.8.1 to 0.8.4: 2017-08-03 15:47:42 +00:00
llvm o Replace __riscv__ with __riscv 2017-08-07 14:09:57 +00:00
mdocml Update mandoc to 1.14.2 2017-07-31 19:34:38 +00:00
mknod
mtree
ncurses
netbsd-tests regex(3): Handle invalid {} constructs consistently and adjust tests 2017-08-08 04:10:46 +00:00
netcat
ngatm
ntp
nvi
ofed Fix accidental misconversion done in r321912 2017-08-02 09:00:18 +00:00
one-true-awk
openbsm
openpam
openresolv
opie
pam_modules/pam_passwdqc
pf
pjdfstest
pnpinfo
sendmail
serf
smbfs
sqlite3
subversion
tcp_wrappers
tcpdump
tcsh
telnet
tnftp
top Enhance top(1) to filter on multiple usernames 2017-08-07 08:45:08 +00:00
traceroute
tzcode
tzdata
unbound
unvis
vis
wpa
xz
zlib
zstd o Replace __riscv__ with __riscv 2017-08-07 14:09:57 +00:00