← Commit list

248b4a77e

Denis Vlasenko
Denis Vlasenko
2008-09-19
FAILED Duration: 32s

Subject

libbb: document that we maybe will want to understand \e someday (no code changes)

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

libbb/process_escape_sequence.c+10 -7
@@ -18,17 +18,20 @@
char FAST_FUNC bb_process_escape_sequence(const char **ptr)
{
+ /* bash builtin "echo -e '\ec'" interprets \e as ESC,
+ * but coreutils "/bin/echo -e '\ec'" does not.
+ * manpages tend to support coreutils way. */
static const char charmap[] ALIGN1 = {
- 'a', 'b', 'f', 'n', 'r', 't', 'v', '\\', 0,
- '\a', '\b', '\f', '\n', '\r', '\t', '\v', '\\', '\\' };
+ 'a', 'b', /*'e',*/ 'f', 'n', 'r', 't', 'v', '\\', 0,
+ '\a', '\b', /*27,*/ '\f', '\n', '\r', '\t', '\v', '\\', '\\' };
const char *p;
const char *q;
- unsigned int num_digits;
- unsigned int r;
- unsigned int n;
- unsigned int d;
- unsigned int base;
+ unsigned num_digits;
+ unsigned r;
+ unsigned n;
+ unsigned d;
+ unsigned base;
num_digits = n = 0;
base = 8;