Re: (sh/bash) How to check for a string matching -*?
- From: Geoff Clare <geoff@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 22 Jun 2010 13:28:29 +0100
Janis Papanagnou wrote:
This is especially interesting; I thought ksh88 was POSIX conformant,
but it did not support /!/. Had that been a later addition to POSIX?
The POSIX shell description was based on ksh88 but with some
modifications. Obviously the original ksh88 did not implement
those modifications, so it was not POSIX conformant. Systems that
use ksh88 as their POSIX shell had to modify it to be conformant.
Later versions of ksh88 added the "missing" POSIX features such
as ! and $((...)), but are still not conformant in some ways.
That's why /usr/xpg4/bin/sh and /bin/ksh are different binaries
in Solaris 10.
One difference that springs to mind is:
$ ksh -c 'echo $((010))'
10
$ sh -c 'echo $((010))'
8
--
Geoff Clare <netnews@xxxxxxxxxxxxx>
.
- References:
- (sh/bash) How to check for a string matching -*?
- From: Kenny McCormack
- Re: (sh/bash) How to check for a string matching -*?
- From: Martin Vaeth
- Re: (sh/bash) How to check for a string matching -*?
- From: John Kelly
- Re: (sh/bash) How to check for a string matching -*?
- From: Martin Vaeth
- Re: (sh/bash) How to check for a string matching -*?
- From: Janis Papanagnou
- Re: (sh/bash) How to check for a string matching -*?
- From: Wayne
- Re: (sh/bash) How to check for a string matching -*?
- From: Janis Papanagnou
- (sh/bash) How to check for a string matching -*?
- Prev by Date: Fueling your car with natural gas from home
- Next by Date: Re: Locking shell sessions
- Previous by thread: Re: (sh/bash) How to check for a string matching -*?
- Next by thread: Re: (sh/bash) How to check for a string matching -*?
- Index(es):
Relevant Pages
|