From owner-freebsd-stable@freebsd.org Wed Jul 27 08:20:14 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 4289EBA514B for ; Wed, 27 Jul 2016 08:20:14 +0000 (UTC) (envelope-from jjuanino@gmail.com) Received: from mail-oi0-x232.google.com (mail-oi0-x232.google.com [IPv6:2607:f8b0:4003:c06::232]) (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 0B81516B6 for ; Wed, 27 Jul 2016 08:20:14 +0000 (UTC) (envelope-from jjuanino@gmail.com) Received: by mail-oi0-x232.google.com with SMTP id w18so7527380oiw.3 for ; Wed, 27 Jul 2016 01:20:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=C9eDY/RCXmHqpR6TaBe72eT66wOZZZ50TKZOXPwLBSY=; b=YR7s5esQThaAKTlOQJvag3GJOY1Uwvygi7V3Y3NPECVVTAUu/P0Zrj4lOZ/frU/45Q Hbu9nJb+7Bf3d43w0RAM9e/8FYWuYpNEi4YXu0h54AzLElWzgseX9laxMVik36AcvOah caydPyOyZuArC9k1Q4lYgUZnXQtL+0xfwoip/WC1ST6crAplLKEj9P/yU6ZFUFu74gpA NG3AU97LSqU6liZirFXvje8enO1iizy6nRKGPVaWeGPFmiM4tUXY5KctjJUh0yIkN1jd /nDxtjjED8tjI0LmL7NoC0jBQkJn5Gp2ul8ZTc2myiHrvSkEnDazxtVaBp4poDT5O5Oc ziTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=C9eDY/RCXmHqpR6TaBe72eT66wOZZZ50TKZOXPwLBSY=; b=ihSZP+RpzMXo9CNXDFf7euMiG7t1tnqKACP8tgB18rEP1I4LbyjqHnRJKT91LfaugV SJpUuJQ4aAN0KzsVGZ2mb/u41VHk9XTXL5P9nGRtrjaoKr7xxQSwBA3AnI33ZrEljJSn YGM+SkNqBoUMj9sAWNdmjRxD2bI+oN6ZnEToC99exGee1p2rM5eUfNGakgq0xa2lYKVe 1sKdmB/Q/fNORIpziyXWZlNtOPkt9fS/GzyPTshkjxucygKroSlANPUWUpK905+69Q9d WhHoi8M0BteqitooCC/GS8UJ/VU6PtagTXw7FE5+HNmf4a6zQ1UB8+rxlOtaYQR0jdRb E+4g== X-Gm-Message-State: AEkoousTxlg3Oi+s6WeDkOm+esF1P6hgCIBVSR9/E4GQnh815xwaPPdnx/jREsgWWWlnpfMj9SxLfXm45Jc6pA== X-Received: by 10.202.77.68 with SMTP id a65mr16276755oib.9.1469607613149; Wed, 27 Jul 2016 01:20:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.171.6 with HTTP; Wed, 27 Jul 2016 01:20:12 -0700 (PDT) From: =?UTF-8?B?Sm9zw6kgR2FyY8OtYSBKdWFuaW5v?= Date: Wed, 27 Jul 2016 10:20:12 +0200 Message-ID: Subject: sed command does not behave equal from 10.3 to 11.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=UTF-8 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:20:14 -0000 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