Package: shtool
Version: 2.0.8-10
Severity: normal
X-Debbugs-Cc: [email protected]
Dear Maintainer,
I have found this bug while writing autopkgtests for the package in Ubuntu. By
default, `shtool echo` should not expand escape sequences.
------------------
Steps to reproduce
------------------
1. apt install shtool on Ubuntu Stonking
2. Run the following command:
ubuntu@s:~$ shtool echo '\1' | cat -v
^A
3. Observe the output with the unprintable character instead of the literal
'\1' line.
---------------
Expected output
---------------
ubuntu@s:~$ shtool echo '\1' | cat -v
\1
-----
Notes
-----
This behavior is required by the currently failing first upstream test:
@begin{echo}
test ".`shtool echo foo bar quux`" = ".foo bar quux"
bytes=`shtool echo -n foo | wc -c | awk '{ printf("%s", $1); }'`
test ".$bytes" = .3
bytes=`shtool echo '\1' | wc -c | awk '{ printf("%s", $1); }'`
test ".$bytes" = .3
@end{echo}
The upstream test consistently fails but still exits with zero. In
Ubuntu, we have a patch to use non-zero exit code on failure, and
another patch to skip the test case until a solution is decided.
LP Bug:
https://bugs.launchpad.net/ubuntu/+source/shtool/+bug/2167073
-- System Information:
Debian Release: forky/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 7.0.0-31-generic (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages shtool depends on:
ii perl 5.42.3-1
shtool recommends no packages.
Versions of packages shtool suggests:
pn autoconf <none>
pn automake <none>
pn libtool <none>
-- no debconf information