From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 17 07:27:31 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D012A106566B for ; Sun, 17 Jan 2010 07:27:31 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from mail-yx0-f171.google.com (mail-yx0-f171.google.com [209.85.210.171]) by mx1.freebsd.org (Postfix) with ESMTP id 863228FC0C for ; Sun, 17 Jan 2010 07:27:31 +0000 (UTC) Received: by yxe1 with SMTP id 1so1499732yxe.3 for ; Sat, 16 Jan 2010 23:27:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=mCu0/t4KWekck7b/ZxTaISnixGgqpHOK0INEABOw054=; b=GRAeGWzlIyJhZtUeJZkwADR2OfEeCVnb+mGVWLiHmyUZCOScATbE1/MRvI9MRNOC/U Az1V6qVbNNBeWzD2xh1VwsFfVIMSk3AmOLDjQhnJGLgzxcmawwxGADofWhcioXdbCGBt JbTdYQpR85QGUQNKpeQUbsTXGVfGuNkE/Bb4g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=gg00g85/QOKuodPihQ2AvOmutv5HnveXREa2xhOzhT12EYnyOpfdRSggjUBwKRqcdq RgwSZwG9+Jsn1FcUVkKzObUR79AHKG+9iWi/iJzWota1OaMvlQJDLRa8vVjA6n1aJCpM yvdZkhaEqSBNZN3Fh3/Cbbh9Jzt+f7ZxhH7bg= Received: by 10.91.19.35 with SMTP id w35mr867709agi.76.1263713249177; Sat, 16 Jan 2010 23:27:29 -0800 (PST) Received: from ?192.168.0.214? (deviant.freebsdgirl.com [173.8.183.73]) by mx.google.com with ESMTPS id 6sm1523114ywd.22.2010.01.16.23.27.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 16 Jan 2010 23:27:27 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: Garrett Cooper In-Reply-To: <20100115213546.GA39730@lpthe.jussieu.fr> Date: Sat, 16 Jan 2010 23:26:54 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20100115213546.GA39730@lpthe.jussieu.fr> To: Michel Talon X-Mailer: Apple Mail (2.1077) Cc: hackers@freebsd.org Subject: Re: User error or awk bug? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jan 2010 07:27:31 -0000 On Jan 15, 2010, at 1:35 PM, Michel Talon wrote: > awk doesn't use perl or python type regular expressions but much > simpler ones, called "extended". Your constructs are managed by Gnu = awk > with the --posix option only. The following achieves what you want in=20= > a simpler way >=20 >=20 > niobe% echo "/"|awk 'gsub(/\/+/,"/")' > / > niobe% echo "//"|awk 'gsub(/\/+/,"/")' > / Someone else on the gawk list provided me with the answer: awk doesn't = support POSIX regexp intervals, even though the spec says awk should. = His assumption was the fact that awk uses {} for separating control = statements, but I'm not sure if that's true or not. Thanks! -Garrett=