aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2023-10-02 13:56:32 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2023-10-02 13:56:32 +0200
commit791b222dd55d3aa0e8b09be1be571e4829465dd6 (patch)
tree64af8d2c7a5787055bacb15c8a9f20ed51c2732f /shell
parent2cc9d436e80632157b99e18d413a62b2d44d321a (diff)
downloadbusybox-w32-791b222dd55d3aa0e8b09be1be571e4829465dd6.tar.gz
busybox-w32-791b222dd55d3aa0e8b09be1be571e4829465dd6.tar.bz2
busybox-w32-791b222dd55d3aa0e8b09be1be571e4829465dd6.zip
sleep: fix "sleep -- ARGS"
function old new delta sleep_main 116 119 +3 printf_main 860 837 -23 single_argv 50 25 -25 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 3/-48) Total: -45 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/hush.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 8e632e0af..ca01e2b5b 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -10883,14 +10883,6 @@ static int FAST_FUNC builtin_history(char **argv UNUSED_PARAM)
10883} 10883}
10884#endif 10884#endif
10885 10885
10886static char **skip_dash_dash(char **argv)
10887{
10888 argv++;
10889 if (argv[0] && argv[0][0] == '-' && argv[0][1] == '-' && argv[0][2] == '\0')
10890 argv++;
10891 return argv;
10892}
10893
10894static int FAST_FUNC builtin_cd(char **argv) 10886static int FAST_FUNC builtin_cd(char **argv)
10895{ 10887{
10896 const char *newdir; 10888 const char *newdir;