On Fri 1999-03-19 (17:04), Scott Schwartz wrote:
> Joel Eriksson <[EMAIL PROTECTED]> writes:
> | > You need a ";" before the "}".
> | 
> | Huh?
> 
> Yes.  That's how the Bourne shell works.
> 
> | [root@hades ~]# /bin/sh -c '{ echo foo; echo bar }'
> | foo
> | bar
> | 
> | No trailing ; needed..?
> 
> That's a nonstandard feature of whatever shell you've got installed as
> /bin/sh.

Most likely a Linux system where sh is really bash.

  [keith@dagobah gaa]$ which sh
  /bin/sh
  [keith@dagobah gaa]$ ls -al /bin/sh
  lrwxrwxrwx   1 root     root            4 Nov 27 20:35 /bin/sh -> bash
  [keith@dagobah gaa]$

But even the bash appears to be non-standard though since bash on FreeBSD
doesn't like the syntax either.

Oh well. Better to stick to the standard.

-- Keith
-- 
Keith Burdis - MSc (Com Sci) - Rhodes University, South Africa  
Email   : [EMAIL PROTECTED]
WWW     : http://www.rucus.ru.ac.za/~keith/
IRC     : Panthras                                          JAPH

"Any technology sufficiently advanced is indistinguishable from a perl script"

Standard disclaimer.
---

Reply via email to