From owner-freebsd-stable@freebsd.org Wed Jul 27 08:45:26 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 657F8BA58E9 for ; Wed, 27 Jul 2016 08:45:26 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-wm0-x22e.google.com (mail-wm0-x22e.google.com [IPv6:2a00:1450:400c:c09::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DEA7B135F for ; Wed, 27 Jul 2016 08:45:25 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: by mail-wm0-x22e.google.com with SMTP id o80so51045118wme.1 for ; Wed, 27 Jul 2016 01:45:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=40b9kApoGgYqLSkikr8zBiu16guRYXEz9yyeRuwRPgs=; b=ye2RYLgco/2YXf5vpjyEVw/gGmc9GsYF4Wx5E52iRnfSaTB5Qq02+EDMilJujbAl5q owjFqe4F2f8taLNHJMhwHsW8SFY6HxuKOhVRnDVUHGXM1FJzgAovFJmG0g/Xt2rIhKdT f9J2rgO6gVNY46nS0tgk3BkGtWNfWATX02nD7p60MErAK/0Z4KsG6Q2/fq0mirfYcuoZ bqvu1kgB3MTnTxuic+925xV+FiVvZf+TTE5r42KQIpIVWRS6mzZDocEivHWlWu5ivuJL AjGZGeoiyzclnCty/QY/C0ndGzsrl57l1EMCKkWLVGQ/QPh2mGodvLnhdUINIRGwbsKM nGwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=40b9kApoGgYqLSkikr8zBiu16guRYXEz9yyeRuwRPgs=; b=DPG3hUqannq8Xqj7KOnO/EHvwcI+PfWdwt1VZoxyLh5Fb/gmkYmZW9Xqpd5/7RlKA/ HyO3jdU7do/+T/5gob7l3GNGauWSiPUc1lBqEaPRCCkGs+KUiwpnF/zRVvbTSRPDGPR6 Fzq78DeA/8gQPap+pnXwrEiTnw52bCYRH79ks/thjmYipq+FX+KDiaFDaOsae8i4bIpz HPRSiEAtkqWtFkVEpXmemmF9JkK+K5U3AgvqAuyXiIqlJTYM+JXkNRa3/+uh18TFz5Xp +jxaIfPeE+V0uZa2A7QGm54nOp5yJBBY4rT0jR45MfffTT63haCYciB3xT2ZhFZ17IV7 OmDg== X-Gm-Message-State: AEkoouuxcyAvO+a8KSH7dWCFZE6+AWYxNkrVibGJ+Kv7W7IC0hJdUQpbDBtKv+bwBDzQICxQOiFYJfcsrjEvfg== X-Received: by 10.194.156.195 with SMTP id wg3mr28763600wjb.152.1469609124187; Wed, 27 Jul 2016 01:45:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.54.202 with HTTP; Wed, 27 Jul 2016 01:45:23 -0700 (PDT) In-Reply-To: References: From: krad Date: Wed, 27 Jul 2016 09:45:23 +0100 Message-ID: Subject: Re: sed command does not behave equal from 10.3 to 11.0 To: =?UTF-8?B?Sm9zw6kgR2FyY8OtYSBKdWFuaW5v?= Cc: freebsd-stable Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 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 08:45:26 -0000 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) =3D 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) =3D d3fddd6bcca17fc597d7c4598c3311d1 On 27 July 2016 at 09:20, Jos=C3=A9 Garc=C3=ADa Juanino 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-unsubscribe@freebsd.org" >