From owner-freebsd-questions@FreeBSD.ORG Thu Jun 10 16:19:23 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83690106564A for ; Thu, 10 Jun 2010 16:19:23 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-ew0-f224.google.com (mail-ew0-f224.google.com [209.85.219.224]) by mx1.freebsd.org (Postfix) with ESMTP id 08A098FC32 for ; Thu, 10 Jun 2010 16:19:22 +0000 (UTC) Received: by ewy24 with SMTP id 24so60024ewy.34 for ; Thu, 10 Jun 2010 09:19:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:x-mailer:mime-version:content-type :content-transfer-encoding; bh=Y7N32rzMiV8fDaAqjewBp+wI3trlAAUf9KJx/7XzTMc=; b=RRnc+IYEeLH0IQNRi3iZTf1kmcf90t5qGl/0ilWpAagp9wnbsA78IZrfBgirY4j2wP eBFYHfUh8EiURjmlnwe/zWe+add9JtokVm/UsLId/2auhgJt8bTS38fLGYvs4YUUK4j2 H9sbRJl7WlkI2pirTF/YA48iF8pMWzix/3OfM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:x-mailer:mime-version:content-type :content-transfer-encoding; b=n1ia34y7+rXLElwf+dfBXz9RrOfbHSY8xbCGjvAMIBj4/p26i3vj+5fFJenSnCCS+D 30viJPce17BhKXaOKaotl4zFZRNO4oV3c/nGqVyYugEapBU3IHIdjkDo9xu+nE9YBcWe 19ReJkEzzv5sQ7R9OYjfhB7dORsz5IYcN8yGw= Received: by 10.213.8.134 with SMTP id h6mr261892ebh.95.1276186758756; Thu, 10 Jun 2010 09:19:18 -0700 (PDT) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id 16sm79412ewy.15.2010.06.10.09.19.05 (version=SSLv3 cipher=RC4-MD5); Thu, 10 Jun 2010 09:19:09 -0700 (PDT) Date: Thu, 10 Jun 2010 17:18:54 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20100610171854.69246a78@gumby.homeunix.com> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: sh ++/-- operators X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2010 16:19:23 -0000 FreeBSD's sh (in 8.0) doesn't seem to support the ++ or -- arithmetic operators $ echo "$((n++))" arithmetic expression: syntax error: "n++" Am I wrong in thinking these are POSIX operators? It seems odd if they were simply left-out..