cc:  [EMAIL PROTECTED] [EMAIL PROTECTED]  [EMAIL PROTECTED] [EMAIL PROTECTED]
Subject: Re: [ast-users] "test \( ! -e \)" yields an error
--------

> Date:    Wed, 12 Dec 2007 01:46:41 +0100
> From:    Vincent Lefevre <[EMAIL PROTECTED]>
> To:      Debian Bug Tracking System <[EMAIL PROTECTED]>
> Subject: Bug#455824: ksh: "test \( ! -e \)" yields an error
> 
> Package: ksh
> Version: 93s+20071105-1
> Severity: normal
> 
> According to POSIX[*], "test \( ! -e \)" is a 4-argument test and is
> here equivalent to "test ! -e". But ksh93 yields an error:
> 
> $ test \( ! -e \) || echo $?
> ksh93: test: argument expected
> 2
> $ test ! -e || echo $?      
> 1
> 
> The "test" utility from the Coreutils is correct:
> 
> $ /usr/bin/test \( ! -e \) || echo $?
> 1
> 
> [*] http://www.opengroup.org/onlinepubs/009695399/utilities/test.html
> 
> - -- System Information:
> Debian Release: lenny/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (500, 'stable')
> Architecture: i386 (i686)
> 
> Kernel: Linux 2.6.23-1-686-bigmem (SMP w/2 CPU cores)
> Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)
> Shell: /bin/sh linked to /bin/bash
> 
> Versions of packages ksh depends on:
> ii  libc6                         2.7-4      GNU C Library: Shared libraries
> 
> ksh recommends no packages.
> 
> - -- no debconf information
> 

Thanks for the report.  I have fixed this for ksh93t and if there is a ksh93s+
patch it will be moved into it.

David Korn
[EMAIL PROTECTED]
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to