Package: ash
Version: 0.5.4-12
Severity: normal

Hiya,

$ ash -c '. -- --help'
.: 1: --: not found

The handling of "--" is mandated by POSIX I beleive.

With ksh, pdksh, bash and in a POSIX script in general as POSIX
allows any "." implementation to recognise options, you have to
use:

. -- "$1"

if you can't guarantee that "$1" won't start with a "-".

Unfortunately, that code doesn't work with ash, so a POSIX
script written in such a robust way will fail on those systems
where ash is the POSIX sh interpreter.

Best regards,
Stephane


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15 (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages ash depends on:
ii  dash                          0.5.4-12   POSIX-compliant shell

ash recommends no packages.

ash suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to