Package: dash Version: 0.5.11+git20200708+dd9ef66-5 Severity: normal Tags: upstream X-Debbugs-Cc: [email protected]
Dear Maintainer, Please have a look to this test: % dash -c 'unset OPTIND' dash: 1: unset: Illegal number: % echo $? 2 % dash -c 'OPTIND=' dash: 1: Illegal number: % echo $? 2 Behaviour with zsh, pdksh, ksh93, bash, busybox ash, yash: $ unset OPTIND $ OPTIND= Found this difference while running a test suite for my script with different POSIX sh's. It looks obvious that OPTIND should not be unset or null so this may not be a bug. What do you think ? -- System Information: Debian Release: bullseye/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.11.0-1.1-liquorix-amd64 (SMP w/16 CPU threads; PREEMPT) Kernel taint flags: TAINT_OOT_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages dash depends on: ii debconf [debconf-2.0] 1.5.74 ii debianutils 4.11.2 ii dpkg 1.20.7.1 ii libc6 2.31-9 dash recommends no packages. dash suggests no packages.

