Re: TIMEOUT=900: is not an identifier

From: Andreas F. Borchert (comp.unix.solaris_at_expires-on-2005-10-08.usenet.andreas-borchert.de)
Date: 09/30/05


Date: Fri, 30 Sep 2005 18:09:44 +0200 (CEST)

On 2005-09-30, lowkwell@hotmail.com <lowkwell@hotmail.com> wrote:
> On Sun Solaris 9 machine I have got the following error if the default
> shell is set to /bin/sh "-sh: TIMEOUT=900: is not an identifier"
>
> TIMEOUT is specified in /etc/profile
> readonly TIMEOUT=900

Change this to

   TIMEOUT=900
   readonly TIMEOUT

The syntax of /bin/sh is here more restrictive than the syntax of
ksh or bash. /bin/sh permits just variable names to be given as
argument to ``readonly'' but no assignments.

Andreas.