summaryrefslogtreecommitdiff
path: root/utility.c
diff options
context:
space:
mode:
authorEric Andersen2001-03-08 17:17:13 +0000
committerEric Andersen2001-03-08 17:17:13 +0000
commitca6045955d8e51b268e242f59f3b63b9fdcf90e6 (patch)
tree7114ee07aff93918d343d2b4afb156b6413cf9ca /utility.c
parente2c44fc966d30ba719dcf3bc65c60f275ee7d8a4 (diff)
downloadbusybox-ca6045955d8e51b268e242f59f3b63b9fdcf90e6.zip
busybox-ca6045955d8e51b268e242f59f3b63b9fdcf90e6.tar.gz
Rework environment variable handling to use wordexp, per a suggestion from
Larry Doolittle a couple of months ago. This makes the stuff-expansion in lash be ever so standards compliant. This change needs testing by everyone, but appears to be solid enough to let us close bug #1090. It works for me; however, please test this change! -Erik
Diffstat (limited to 'utility.c')
-rw-r--r--utility.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utility.c b/utility.c
index 140480b..7fd4cad 100644
--- a/utility.c
+++ b/utility.c
@@ -1815,7 +1815,7 @@ const char *make_human_readable_str(unsigned long val, unsigned long hr)
}
#endif
-#if defined(BB_GREP) || defined(BB_HOSTNAME) || defined(BB_SED) || defined(BB_TAR) || defined(BB_WGET) || defined(BB_XARGS)
+#if defined(BB_GREP) || defined(BB_HOSTNAME) || defined(BB_SED) || defined(BB_TAR) || defined(BB_WGET) || defined(BB_XARGS) || defined(BB_SH)
void chomp(char *s)
{
size_t len = strlen(s);