Article View: muc.lists.netbsd.tech.userlevel
Article #80Re: sh: arithmetic: ++ operator unsupported
From: Edgar Fuß
Date: Thu, 12 Nov 2026 15:13
Date: Thu, 12 Nov 2026 15:13
26 lines
2817 bytes
2817 bytes
> Not a great surprise. -6 ??? Sorry, it's from 8.2. I keep that old /rescue because I can switch that machine between -8, -10 and -11 (I skipped -9): I have an -8 installation in /8, /usr/8 and /var/8 (plus null mounts for that latter on /8/usr resp. /8/var), same for s/8/10/ (and, currently empty, for 11) and a shell script that can swap (given a configuration file knowing what to swap), i.e. /bin->/11/bin and /10/bin->/bin and I need the lowest supported version in /rescue as I do the swap in single user mode with /rescue/sh (and PATH=/rescue) plus /rescue/reboot. > That (vi editing mode) probably shouldn't be missing, are you sure? > Did you "set -V" (along with setting TERM etc). Sorry again, it's actually built in. > But ++ isn't missing from "/rescue/"sh in -6, it is missing from sh in -6 > (maybe in -7 as well, I don't remember the timeline). Ah, I see. But it's also missing from sh in 8.2. > No-one had bothered to implement it? ++ wasn't, and still isn't, > a POSIX required operator in shell arithmetic (and -- of course). Sorry once again, I missed that. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<avXXsoLeoEoKOa+A@trav.math.uni-bonn.de>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<> <29022.1794469264@jacaranda.noi.kre.to>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail From: Edgar Fuß <ef@math.uni-bonn.de> Newsgroups: muc.lists.netbsd.tech.userlevel Subject: Re: sh: arithmetic: ++ operator unsupported Date: Thu, 12 Nov 2026 16:13:54 +0100 Organization: Newsgate at muc.de e.V. Sender: tech-userlevel-owner@NetBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <avXXsoLeoEoKOa+A@trav.math.uni-bonn.de> References: <> <29022.1794469264@jacaranda.noi.kre.to> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="71698"; mail-complaints-to="news-admin@muc.de" Authentication-Results: mail.netbsd.org (amavisd-new); dkim=pass (1024-bit key) header.d=math.uni-bonn.de DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=math.uni-bonn.de; s=mail; t=1794496436; bh=wuli0gARTix3dmuPbKQ2wbf4jxIpnMrvixzUJnPMiqo=; h=Date:From:To:Subject:References:In-Reply-To; b=EEaLp1aRnj+tVTv8rdKSqLie7hqOBzCgTfs1TSFF7bu3Zl8N1vYKWSyBMNLVHgrPi PevXBA6EYQRrMGHAWOWfm7Hl3nN4Wn1lBvAe/qsMTUADsf8X0w+IZBVPWAJEEMX/se PWsX6EXvseZXEWvePsTp+fdyOBy7VGxBOI554QlE= Content-Disposition: inline In-Reply-To: <29022.1794469264@jacaranda.noi.kre.to> Precedence: bulk X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes