From: Rhialto <rhia...@falu.nl>
Date: Mon, 23 Jun 2008 22:47:46 +0200
Local: Mon, Jun 23 2008 4:47 pm
Subject: Re: [PATCH] fix $(..) and $((..)) syntax highlighting for /bin/sh
On Mon 23 Jun 2008 at 16:14:51 -0400, James Vega wrote:
> On Mon, Jun 23, 2008 at 09:47:15PM +0200, Rhialto wrote: No, I'm not. On the BSDs for instance, /bin/sh is not bash nor ksh nor > > On Tue 17 Jun 2008 at 10:44:50 -0400, James Vega wrote: > > But the current Bourne shell *is* a POSIX shell. > You're thinking of the Bourne-Again SHell (aka bash). I'm referring to ash nor dash, but it *is* a POSIX shell. For the simple reason that currenent Unixen ought to be POSIX compliant. I have appended a few fragments from sh(1) at the end. > I'll also reiterate that the current default has a purpose in being I totally agree with that. I very much dislike the mentality (that I'd > annoyingly wrong in how it syntax highlights the code people using > modern systems are writing. It forces you to choose what the correct > syntax highlighting is when there is no other clear indication what > shell you are coding towards. like to call the "Linux mentality", much like the older "all the world is a VAX mentality") of "if it works on my machine it must be ok". But on current Unixen, sh is POSIX, and has been for many years, simply SH(1) NetBSD General Commands Manual SH(1) NAME SYNOPSIS DESCRIPTION ... $(command) or (``backquoted'' version): `command` The shell expands the command substitution by executing command in a sub- Arithmetic Expansion $((expression)) The expression is treated as if it were in double-quotes, except that a Next, the shell treats this as an arithmetic expression and substitutes Arithmetic expressions use a syntax similar to that of the C language, > James -Olaf. -- ___ Olaf 'Rhialto' Seibert -- You author it, and I'll reader it. \X/ rhialto/at/xs4all.nl -- Cetero censeo "authored" delendum esse. You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||