Package: sed
Version: 4.2.1-9
Severity: normal
Dear Maintainer,
Output the script in 'info sed "Centering lines"' to a file:.
% info sed "Centering lines" 2> /dev/null | \
sed -n '/#/,35p' | sed 's/^ //' > /tmp/sedcenter
% chmod +x /tmp/sedcenter
The script fails:
% echo hello | /tmp/sedcenter
/bin/sed: file /tmp/sedcenter line 12: strings for `y' command are
different lengths
Line #12:
%grep -n 'y/' /tmp/sedcenter
12:y/tab/ /
It looks as though #12 should behave as "tr '\t' ' '", but line #12
doesn't seem to work for the current version of 'sed'.
This would work:
s/\t/ /g
I'd include a patch, but it's not obvious whether the code in line #12
is wrong, or if 'sed' should be able to run it.
HTH...
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash
Versions of packages sed depends on:
ii dpkg 1.16.3
ii install-info 4.13a.dfsg.1-10
ii libc6 2.13-32
ii libselinux1 2.1.9-4
sed recommends no packages.
sed suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]