Package: dash
Version: 0.5.3-3
Severity: normal
In 'dash' try this:
% foo() { export x="$@" ; }
% foo -f --c
export: 4: --c: bad variable name
% echo $?
2
It seems like it should be standard code.
Remove 'export' from 'foo()' and there's no error:
% foo() { x="$@" ; } ; foo -f --c ; echo $?
0
I just tested the code in 'bash', 'ksh' and 'pdksh'; it works with no
errors. Yet in 'posh' it gives a different error:
% posh
% foo() { export x="$@" ; } ; foo -f --c ; echo $?
export: invalid option -- -
1
Hope this helps...
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.16-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Versions of packages dash depends on:
ii libc6 2.3.6-16 GNU C Library: Shared libraries
dash recommends no packages.
-- debconf information:
dash/sh: false
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]