Package: tiger
Version: 1:3.2.1-24
Severity: normal
Tags: patch

if pwd == '!', then the comparison appears to the test command ( aka
'[') as: [ ! != ! ].  as '!' is a reserved symbol meaning the following
expression ("!= !") is negated.  since "!= !" is not a proper
expression, the test command complains.

it appears that a character preceding the '!' (such as a quoted space in
the following example) will cause the '!' not to be interpreted as a
reserved symbol.

[EMAIL PROTECTED]:~$ chase $(which sh)
/bin/dash
[EMAIL PROTECTED]:~$ sh
$ pwd=!
$ [ "$pwd" != '!' ] && echo true || echo false
[: 2: !: unexpected operator
false
$ [ " $pwd" != ' !' ] && echo true || echo false
false

instead of a ' ', feel free to use a 'x' (ie "[ "x${pwd}" != 'x!' ]") as
seems to be the custom in shell scripts.

thanks for your development, maintenance, & packaging of tiger.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-k7+5+new
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages tiger depends on:
ii  binutils                    2.15-5       The GNU assembler, linker
and bina
ii  coreutils [fileutils]       5.2.1-2.01   The GNU core utilities
ii  debconf                     1.4.30.13    Debian configuration
management sy
ii  diff                        2.8.1-11     File comparison utilities
ii  libc6                       2.3.2.ds1-21 GNU C Library: Shared
libraries an
ii  net-tools                   1.60-10      The NET-3 networking
toolkit

-- debconf information:
* tiger/mail_rcpt: root
  tiger/remove_mess: true
* tiger/policy_adapt:

Attachment: check_passwdspec.patch
Description: Binary data

Reply via email to