From 47d174561b67dafc6e23c2e0e6954fedd570b301 Mon Sep 17 00:00:00 2001 From: Steven Danna Date: Sun, 21 Jul 2019 16:27:12 +0000 Subject: [PATCH] [hab] Allow flexible whitespace in HAB_DOCKER_OPTS This partially fixes #5115. To fix it completely, we would have to lex the string to identify quoted whitespace. But, I think this improves the common case at a rather low cost. Signed-off-by: Steven Danna --- components/hab/src/command/studio/docker.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/hab/src/command/studio/docker.rs b/components/hab/src/command/studio/docker.rs index 4c688e12ca..e4674cc5ea 100644 --- a/components/hab/src/command/studio/docker.rs +++ b/components/hab/src/command/studio/docker.rs @@ -226,7 +226,7 @@ fn run_container(docker_cmd: PathBuf, if let Ok(opts) = henv::var(DOCKER_OPTS_ENVVAR) { let opts = opts - .split(' ') + .split_whitespace() .map(|v| v.into()) // Ensure we're not passing something like `--tty` again here. .filter(|v| !cmd_args.contains(v))