diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-06 12:07:11 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-06 12:08:43 +0200 |
commit | 457825f77a7c7286647ee888a1000a6bb12ca8fc (patch) | |
tree | f4deac5510cbae6299b964f48d4c8cad8bde3ce4 /shell/shell_common.c | |
parent | a1b0d3856d9a0419cb74bf4c87525265871b5868 (diff) | |
download | busybox-w32-457825f77a7c7286647ee888a1000a6bb12ca8fc.tar.gz busybox-w32-457825f77a7c7286647ee888a1000a6bb12ca8fc.tar.bz2 busybox-w32-457825f77a7c7286647ee888a1000a6bb12ca8fc.zip |
shells: do not allow bare "read" in non-bash compat configs
On Sat, Feb 9, 2019 Cristian Ionescu-Idbohrn wrote:
> In my case (at work), I have to watch and prevent people from doing
> unportable things. For me, that's a burden.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/shell_common.c')
-rw-r--r-- | shell/shell_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/shell_common.c b/shell/shell_common.c index e3d6783b5..2e36d9208 100644 --- a/shell/shell_common.c +++ b/shell/shell_common.c | |||
@@ -59,7 +59,7 @@ shell_builtin_read(struct builtin_read_params *params) | |||
59 | while (*pp) { | 59 | while (*pp) { |
60 | if (endofname(*pp)[0] != '\0') { | 60 | if (endofname(*pp)[0] != '\0') { |
61 | /* Mimic bash message */ | 61 | /* Mimic bash message */ |
62 | bb_error_msg("read: '%s': not a valid identifier", *pp); | 62 | bb_error_msg("read: '%s': bad variable name", *pp); |
63 | return (const char *)(uintptr_t)1; | 63 | return (const char *)(uintptr_t)1; |
64 | } | 64 | } |
65 | pp++; | 65 | pp++; |