diff --git a/README.rst b/README.rst index 9be40f6..c0995f2 100644 --- a/README.rst +++ b/README.rst @@ -211,7 +211,7 @@ Examples 4. ``dockcross bash -c '$CC test/C/hello.c -o hello'``: Build the *hello.c* file with the compiler identified with the ``CC`` environmental variable in the build environment. -5. ``dockcross --args -it bash``: Run an interactive shell in the build environment. +5. ``dockcross bash``: Run an interactive shell in the build environment. Note that commands are executed verbatim. If any shell processing for environment variable expansion or redirection is required, please use diff --git a/imagefiles/dockcross b/imagefiles/dockcross index 7299c17..e7ef3c6 100755 --- a/imagefiles/dockcross +++ b/imagefiles/dockcross @@ -179,7 +179,8 @@ fi #------------------------------------------------------------------------------ # Now, finally, run the command in a container # -docker run --rm \ +tty -s && TTY_ARGS=-ti || TTY_ARGS= +docker run $TTY_ARGS --rm \ -v $PWD:/work \ $USER_IDS \ $FINAL_ARGS \