Your message dated Wed, 10 Jun 2026 11:14:14 +0800
with message-id <[email protected]>
and subject line Re: `dash` echo is inconsistent with all other echo
has caused the Debian Bug report #1138751,
regarding `dash` echo is inconsistent with all other echo
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.)


-- 
1138751: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1138751
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dash
Version: 0.5.13.3
Severity: normal


# greeting


Hi, developers.


I'm first time bug report outside github using email.


Hope I did it right.


## bug


`dash` echo is inconsistent with all other echo


## version


nixpkgs


dash 0.5.13.3


## reproduce


```sh
echo XDI0NAo= | base64 -d &gt;/tmp/reproduce.txt


dash -c 'echo "$(cat /tmp/reproduce.txt)"'


dash -c 'uutils-echo "$(cat /tmp/reproduce.txt)"'
bash -c 'echo "$(cat /tmp/reproduce.txt)"'
busybox sh -c 'echo "$(cat /tmp/reproduce.txt)"'
ksh -c 'echo "$(cat /tmp/reproduce.txt)"'
mksh -c 'echo "$(cat /tmp/reproduce.txt)"'
zsh -c 'echo "$(cat /tmp/reproduce.txt)"'
```


## actual


```console
�
\244
\244
\244
\244
\244
\244
```


## expected


```console
\244
\244
\244
\244
\244
\244
\244
```


## workaround


use `uutils-coreutils`

--- End Message ---
--- Begin Message ---
On Wed, Jun 03, 2026 at 08:19:59AM +0000, loynoir wrote:
>
> ```sh
> echo XDI0NAo= | base64 -d &gt;/tmp/reproduce.txt

...

> ## actual
> 
> 
> ```console
> �

This is not a bug.  Dash is interpreting the escape sequence as
mandated by POSIX.

To portably produce a backslash character, you should use printf
instead of echo.

Cheers,
-- 
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

--- End Message ---

Reply via email to