From 762d35c75fe7001847adf85b5cf8279d53f627d7 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 21 Apr 2007 17:28:51 +0000 Subject: [PATCH] hust: add a comment --- shell/hush.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shell/hush.c b/shell/hush.c index 046e098d9..b367a08b2 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -503,6 +503,10 @@ static const char *set_cwd(void) return cwd; } +// It seems ALL built-ins ever use *only* child->argv in child param. +// Passing argv directly may make 'child->argv += n' modifications +// unneeded on vfork codepaths. + /* built-in 'eval' handler */ static int builtin_eval(struct child_prog *child) { -- 2.25.1