From owner-freebsd-stable@freebsd.org Wed Jul 27 09:08:41 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E275CBA6289 for ; Wed, 27 Jul 2016 09:08:41 +0000 (UTC) (envelope-from fullermd@over-yonder.net) Received: from mail.infocus-llc.com (mail.infocus-llc.com [199.15.120.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B2CD41286 for ; Wed, 27 Jul 2016 09:08:41 +0000 (UTC) (envelope-from fullermd@over-yonder.net) Received: from draco.over-yonder.net (c-75-65-60-66.hsd1.ms.comcast.net [75.65.60.66]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.tarragon.infocus-llc.com (Postfix) with ESMTPSA id 3rzps343LxzD8; Wed, 27 Jul 2016 04:01:59 -0500 (CDT) Received: by draco.over-yonder.net (Postfix, from userid 100) id 3rzps256hjz3jw; Wed, 27 Jul 2016 04:01:58 -0500 (CDT) Date: Wed, 27 Jul 2016 04:01:58 -0500 From: "Matthew D. Fuller" To: krad Cc: =?iso-8859-1?Q?Jos=E9_Garc=EDa?= Juanino , freebsd-stable Subject: Re: sed command does not behave equal from 10.3 to 11.0 Message-ID: <20160727090158.GD31921@over-yonder.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Editor: vi X-OS: FreeBSD X-Virus-Scanned: clamav-milter 0.99 at mail.tarragon.infocus-llc.com X-Virus-Status: Clean User-Agent: Mutt/1.6.1-fullermd.4 (2016-04-27) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jul 2016 09:08:42 -0000 On Wed, Jul 27, 2016 at 09:45:23AM +0100 I heard the voice of krad, and lo! it spake thus: > are you sure you aren't hitting a port or something? Locale dependant. % echo "abc_ABC.def" | env LANG=C sed -e 's/[^A-Z0-9]//g' ABC % echo "abc_ABC.def" | env LANG=en_US.UTF-8 sed -e 's/[^A-Z0-9]//g' bcABCdef (pre-branch -CURRENT) -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream.