home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!crdgw1!rdsunx.crd.ge.com!ariel!davidsen
- From: davidsen@ariel.crd.GE.COM (william E Davidsen)
- Newsgroups: comp.unix.shell
- Subject: Re: ksh: expression eval feature or bug?
- Message-ID: <1993Jan7.172332.10871@crd.ge.com>
- Date: 7 Jan 93 17:23:32 GMT
- References: <C0GF6p.JxJ@cmptrc.lonestar.org>
- Sender: usenet@crd.ge.com (Required for NNTP)
- Reply-To: davidsen@crd.ge.com (bill davidsen)
- Organization: GE Corporate R&D Center, Schenectady NY
- Lines: 17
- Nntp-Posting-Host: ariel.crd.ge.com
-
- In article <C0GF6p.JxJ@cmptrc.lonestar.org>, marc@cmptrc.lonestar.org (Marc Elewitz) writes:
-
- | $print $(((1+2)))
- | + print 3
- | 3
- |
- | Although '((1+2))' sends nothing to stdout, 'print $(((1+2)))' displays
- | the expression result. Why??
-
- You're misreading the expression. Parenthesis are allowed in
- expressions, so you're evaluating the expression (1+2) which has a
- result very similar to 1+2 without the parens.
-
-
- --
- bill davidsen, GE Corp. R&D Center; Box 8; Schenectady NY 12345
- Keyboard controller has been disabled, press F1 to continue.
-