Your message dated Fri, 16 Dec 2022 18:06:33 +0100
with message-id <[email protected]>
and subject line Re: Bug#971880: dash: fails to treat export as declaration
utility, making savelog fail with spaces in $PATH
has caused the Debian Bug report #971880,
regarding dash: fails to treat export as declaration utility, making savelog
fail with spaces in $PATH
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
971880: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971880
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: debianutils
Version: 4.9.1
Severity: normal
Admittedly, this bugreport comes from Debian derivate which cannot be
named 20.04 "focal" running under WSL 1, but it will certainly apply
to plain Debian as well.
tl;dr: I was trying to run popcon once:
root@DESKTOP-PN6OO9E:~ # /etc/cron.daily/popularity-contest
/usr/bin/savelog: 83: export: Files/Intel/WiFi/bin/:/mnt/c/Program: bad
variable name
This is caused by:
root@DESKTOP-PN6OO9E:~ # export -p | grep '^export .* '
export
PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program
Files/Intel/WiFi/bin/:/mnt/c/Program Files/Common
Files/Intel/WirelessCommon/:/mnt/c/Program
Files/dotnet/:/mnt/c/Users/tglase/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/tglase/.dotnet/tools:/snap/bin'
-- System Information:
Debian Release: bullseye/sid
APT prefers focal-updates
APT policy: (500, 'focal-updates'), (500, 'focal-security'), (500, 'focal'),
(100, 'focal-backports')
Architecture: amd64 (x86_64)
Kernel: Linux 4.4.0-19041-Microsoft
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8
(charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Versions of packages debianutils depends on:
ii libc6 2.31-0ubuntu9
debianutils recommends no packages.
debianutils suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Package: dash
Version: 0.5.11+git20200708+dd9ef66-1
$ git bisect start
$ git bisect bad
$ git bisect good v0.5.10.2
Bisecting: 47 revisions left to test after this (roughly 6 steps)
[86a841bb444ed1d9a09afb38cb818a21c04e1beb] expand: Fix double-decrement in
argstr
$ git bisect run sh -c 'make -j25 CC=gcc || exit 125; ! a="b /c/d" src/dash -c
'\''export a=$a:foo'\'
# ...
cbb71a836874d176809a34e22f6b6e4e3ba8c85b is the first bad commit
commit cbb71a836874d176809a34e22f6b6e4e3ba8c85b
Author: Herbert Xu <[email protected]>
Date: Sat May 19 02:39:52 2018 +0800
eval: Add assignment built-in support again
This patch adds assignment built-in support that used to exist
in dash prior to 0.3.8-15. This is because it will soon be part
of POSIX, and the semantics are now much better defined.
Recognition is done at execution time, so even "command -- export"
or "var=export; command $var" should work.
Signed-off-by: Herbert Xu <[email protected]>
src/eval.c | 145 +++++++++++++++++++++++++++++++++--------------------------
src/exec.c | 21 +++++----
src/exec.h | 2 +-
src/parser.c | 3 +-
src/parser.h | 1 +
5 files changed, 97 insertions(+), 75 deletions(-)
bisect run success
The first tag that contains this commit is v0.5.11 and I can confirm
that 0.5.11+git20200708+dd9ef66-1 from snapshot.d.o is the first good
Debian version.
наб
signature.asc
Description: PGP signature
--- End Message ---