echo: add FIXME comment
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
0fcc7f5f73
commit
0e2cb6d1e2
@ -321,6 +321,8 @@ int echo_main(int argc, char **argv)
|
|||||||
if (*arg == '0' && (unsigned char)(arg[1] - '0') < 8) {
|
if (*arg == '0' && (unsigned char)(arg[1] - '0') < 8) {
|
||||||
arg++;
|
arg++;
|
||||||
}
|
}
|
||||||
|
//FIXME? we also accept non-0 starting sequences (see echo-prints-slash_41 test)
|
||||||
|
// echo -ne '-\41-' prints "-!-". bash 5.0.17 does not (prints "-\41-").
|
||||||
/* bb_process_escape_sequence can handle nul correctly */
|
/* bb_process_escape_sequence can handle nul correctly */
|
||||||
c = bb_process_escape_sequence( (void*) &arg);
|
c = bb_process_escape_sequence( (void*) &arg);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user