Index | Thread | Search

From:
"Theo de Raadt" <deraadt@openbsd.org>
Subject:
Re: /bin/echo: add -e to handle escape sequences
To:
tech@openbsd.org
Date:
Sat, 21 Feb 2026 15:09:52 -0700

Download raw body.

Thread
> At Theo's request, this implementation keeps that handling and only
> processes one argument starting with a dash:

Naw, I just pointed out the inconsistancy between the minimum spec
for POSIX XSI, but how almost all the echo will process multiple
arguments.  One thing they are consistant on though, is as soon
as an argument has an extra letter, meaning outside the set of
'-[eEm]*', they print it.

I think we should also process multiple arguments.  The /bin
program should work the same as the builtin, in particular.