Package: zsh
Version: 4.3.9-1
Severity: normal

POSIX.1-2008 says[*]:

  2.3.1 Alias Substitution
  [...] However, reserved words in correct grammatical context
  shall not be candidates for alias substitution.

[*] 
http://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_03_01

but zsh gives:

vin% emulate sh
vin% alias !="echo OK"
vin% ! foo
OK foo
vin% 

instead of running command "foo". ksh93, pdksh, dash and bash
in POSIX mode all behave correctly.

-- System Information:
Debian Release: 5.0
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26.5-20080922 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages zsh depends on:
ii  libc6                     2.9-3          GNU C Library: Shared libraries
ii  libcap2                   2.16-2         support for getting/setting POSIX.
ii  libncursesw5              5.7+20090214-1 shared libraries for terminal hand

Versions of packages zsh recommends:
ii  libpcre3                      7.8-2      Perl 5 Compatible Regular Expressi

Versions of packages zsh suggests:
ii  zsh-doc                       4.3.9-1    zsh documentation - info/HTML form

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to