diff options
Diffstat (limited to 'shell/shell_common.c')
-rw-r--r-- | shell/shell_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/shell_common.c b/shell/shell_common.c index 1897fee3b..fff356c04 100644 --- a/shell/shell_common.c +++ b/shell/shell_common.c | |||
@@ -65,7 +65,7 @@ shell_builtin_read(struct builtin_read_params *params) | |||
65 | while (*pp) { | 65 | while (*pp) { |
66 | if (endofname(*pp)[0] != '\0') { | 66 | if (endofname(*pp)[0] != '\0') { |
67 | /* Mimic bash message */ | 67 | /* Mimic bash message */ |
68 | bb_error_msg("read: '%s': not a valid identifier", *pp); | 68 | bb_error_msg("read: '%s': bad variable name", *pp); |
69 | return (const char *)(uintptr_t)1; | 69 | return (const char *)(uintptr_t)1; |
70 | } | 70 | } |
71 | pp++; | 71 | pp++; |
@@ -296,7 +296,7 @@ shell_builtin_read(struct builtin_read_params *params) | |||
296 | * without variable names (bash compat). | 296 | * without variable names (bash compat). |
297 | * Thus, "read" and "read REPLY" are not the same. | 297 | * Thus, "read" and "read REPLY" are not the same. |
298 | */ | 298 | */ |
299 | if (!params->opt_d && argv[0]) { | 299 | if (argv[0]) { |
300 | /* http://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_05 */ | 300 | /* http://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_05 */ |
301 | const char *is_ifs = strchr(ifs, c); | 301 | const char *is_ifs = strchr(ifs, c); |
302 | if (startword && is_ifs) { | 302 | if (startword && is_ifs) { |