diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-12-29 06:41:05 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-12-29 07:26:23 +0100 |
commit | 0e2cb6d1e2553675bba2999829bbc29219aea987 (patch) | |
tree | fdc8ea2ab05183b6b2c5b780e292d6c02eafc961 | |
parent | 0fcc7f5f738e38766cde59ffd193643458c26cba (diff) | |
download | busybox-w32-0e2cb6d1e2553675bba2999829bbc29219aea987.tar.gz busybox-w32-0e2cb6d1e2553675bba2999829bbc29219aea987.tar.bz2 busybox-w32-0e2cb6d1e2553675bba2999829bbc29219aea987.zip |
echo: add FIXME comment
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | coreutils/echo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/coreutils/echo.c b/coreutils/echo.c index 82f0358b6..44b2eb5d0 100644 --- a/coreutils/echo.c +++ b/coreutils/echo.c | |||
@@ -321,6 +321,8 @@ int echo_main(int argc, char **argv) | |||
321 | if (*arg == '0' && (unsigned char)(arg[1] - '0') < 8) { | 321 | if (*arg == '0' && (unsigned char)(arg[1] - '0') < 8) { |
322 | arg++; | 322 | arg++; |
323 | } | 323 | } |
324 | //FIXME? we also accept non-0 starting sequences (see echo-prints-slash_41 test) | ||
325 | // echo -ne '-\41-' prints "-!-". bash 5.0.17 does not (prints "-\41-"). | ||
324 | /* bb_process_escape_sequence can handle nul correctly */ | 326 | /* bb_process_escape_sequence can handle nul correctly */ |
325 | c = bb_process_escape_sequence( (void*) &arg); | 327 | c = bb_process_escape_sequence( (void*) &arg); |
326 | } | 328 | } |