Created
March 27, 2012 18:47
-
-
Save gtrak/2219080 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
running: | |
(clojure.java.shell/sh "sh" (str "-c " "\"ls -l\"")) | |
returns: | |
{:exit 2, :out "", :err "sh: - : invalid option\nUsage:\tsh [GNU long option] [option] ...\n\tsh [GNU long option] [option] script-file ...\nGNU long options:\n\t--debug\n\t--debugger\n\t--dump-po-strings\n\t--dump-strings\n\t--help\n\t--init-file\n\t--login\n\t--noediting\n\t--noprofile\n\t--norc\n\t--posix\n\t--protected\n\t--rcfile\n\t--restricted\n\t--verbose\n\t--version\nShell options:\n\t-irsD or -c command or -O shopt_option\t\t(invocation only)\n\t-abefhkmnptuvxBCHP or -o option\n"} | |
readably: | |
{:exit 2, :out , :err sh: - : invalid option | |
Usage: sh [GNU long option] [option] ... | |
sh [GNU long option] [option] script-file ... | |
GNU long options: | |
--debug | |
--debugger | |
--dump-po-strings | |
--dump-strings | |
--help | |
--init-file | |
--login | |
--noediting | |
--noprofile | |
--norc | |
--posix | |
--protected | |
--rcfile | |
--restricted | |
--verbose | |
--version | |
Shell options: | |
-irsD or -c command or -O shopt_option (invocation only) | |
-abefhkmnptuvxBCHP or -o option | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment