From: James William Pye <flaw@rhid.com>
To: zsh-workers@sunsite.dk
Subject: [bug?] test adf -ge 0
Date: Tue, 31 Aug 2004 11:22:13 -0700 [thread overview]
Message-ID: <1093976533.69019.10.camel@localhost> (raw)
[-- Attachment #1: Type: text/plain, Size: 584 bytes --]
Using 4.2.0, why does this return successful?
Both sh(freebsd) and bash echo an error message and return 2.
> flaw@void:~ % echo $ZSH_VERSION
> 4.2.0
> flaw@void:~ % test sdf -ge 0
> flaw@void:~ % echo $?
> 0
> flaw@void:~ % /bin/sh
> flaw@void $ test sdf -ge 0
> test: sdf: bad number
> flaw@void $ echo $?
> 2
> flaw@void:~ % bash
> bash-2.05b$ test sdf -ge 0
> bash: test: sdf: integer expression expected
> bash-2.05b$ echo $?
> 2
I know zsh is not bash or sh, but this is a fairly serious inconsistency, IMO.
--
Regards,
James William Pye
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 479 bytes --]
next reply other threads:[~2004-08-31 18:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-31 18:22 James William Pye [this message]
2004-08-31 19:11 ` Dan Nelson
2004-08-31 20:33 ` DervishD
2004-08-31 21:16 ` Bart Schaefer
2004-08-31 23:21 ` James William Pye
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1093976533.69019.10.camel@localhost \
--to=flaw@rhid.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).