Package: dash
Version: 0.5.7-4+b1
Severity: wishlist
Tags: upstream

Dear Maintainer,

dash's builtin version of printf doesn't support '\e' (escape), and literaly 
outputs
the 2 characters as-is. As is well known, this sequence is useful, for example,
when outputting ANSI escape sequences.

While it seems that POSIX does not require that printf support '\e', and there 
are
easy workarounds like using '\033' or using /usr/bin/printf from coreutils, it
might still be worth considering implementing '\e' support, as a way to make 
the environment
more consistent and avoid this small issue when porting scripts from certain 
other systems
or when migrating from Bash to Dash.

The '\e' sequence is supported, namely, by debian's coreutils package version 
of printf,
Bash, and also on OpenBSD and NetBSD implementations of printf.

Thanks

Best Regards

Claudio Martins


-- System Information:
Debian Release: 8.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages dash depends on:
ii  debianutils  4.4+b1
ii  dpkg         1.17.26
ii  libc6        2.19-18+deb8u3

dash recommends no packages.

dash suggests no packages.

-- debconf information:
* dash/sh: true

Reply via email to