are you sure you aren't hitting a port or something?

#  uname -r ; echo "abc_ABC.def" | sed -e 's/[^A-Z0-9]//g' ; which sed ;
md5 /usr/bin/sed
10.3-STABLE
ABC
/usr/bin/sed
MD5 (/usr/bin/sed) = 34e6aedf3b42cbd6dd8379342626e0db


#  uname -r ; echo "abc_ABC.def" | sed -e 's/[^A-Z0-9]//g' ; which sed ;
md5 /usr/bin/sed
11.0-BETA2
ABC
/usr/bin/sed
MD5 (/usr/bin/sed) = d3fddd6bcca17fc597d7c4598c3311d1






On 27 July 2016 at 09:20, José García Juanino <jjuan...@gmail.com> wrote:

> Hi FreeBSD stable,
>
> After upgrade to 11.0-BETA2, a lot of sed scripts are no longer valid:
>
> FreeBSD 10.3
> ---------------------
> $ echo "abc_ABC.def" | sed -e 's/[^A-Z0-9]//g'
> ABC
>
>
> FreeBSD 11.0
> --------------------
> $ echo "abc_ABC.def" | sed -e 's/[^A-Z0-9]//g'
> bcABCdef
>
>
> Indeed, in 11.0 you need to re rewrite the sentence as follows:
>
> $ echo "abc_ABC.def" | sed -e 's/[^[:upper:][:digit:]]//g'
> ABC
>
> In linux, sed behaves exactly as 10.3.
>
> Is this behaviour expected or is a bug?
>
> Best regards
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
>
_______________________________________________
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to