Issue 126: switch extension bash to sh

git-svn-id: http://jclouds.googlecode.com/svn/trunk@2356 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
adrian.f.cole 2009-12-01 01:46:44 +00:00
parent 3c8a34b674
commit f463adcf1d
3 changed files with 3 additions and 3 deletions

View File

@ -186,7 +186,7 @@ public enum ShellToken {
case WINDOWS: case WINDOWS:
return "cmd"; return "cmd";
case UNIX: case UNIX:
return "bash"; return "sh";
} }
case LIBRARY_PATH_VARIABLE: case LIBRARY_PATH_VARIABLE:
switch (family) { switch (family) {

View File

@ -54,7 +54,7 @@ public class Statements {
/** /**
* Kills the pid and subprocesses related to the variable {@code FOUND_PID} if set. * Kills the pid and subprocesses related to the variable {@code FOUND_PID} if set.
* *
* @see findPid * @see #findPid
*/ */
public static Statement kill() { public static Statement kill() {
return KILL; return KILL;

View File

@ -41,7 +41,7 @@ public class ShellTokenTest {
public void testTokenValueMapUNIX() { public void testTokenValueMapUNIX() {
Map<String, String> expected = new ImmutableMap.Builder<String, String>().put("fs", "/").put( Map<String, String> expected = new ImmutableMap.Builder<String, String>().put("fs", "/").put(
"ps", ":").put("lf", "\n").put("sh", "bash").put("source", ".").put("rem", "#").put( "ps", ":").put("lf", "\n").put("sh", "sh").put("source", ".").put("rem", "#").put(
"args", "$@").put("varl", "$").put("return", "return").put("exit", "exit").put( "args", "$@").put("varl", "$").put("return", "return").put("exit", "exit").put(
"varr", "").put("libraryPathVariable", "LD_LIBRARY_PATH").put("beginScript", "varr", "").put("libraryPathVariable", "LD_LIBRARY_PATH").put("beginScript",
"#!/bin/bash\nset +u\nshopt -s xpg_echo\nshopt -s expand_aliases\n").put( "#!/bin/bash\nset +u\nshopt -s xpg_echo\nshopt -s expand_aliases\n").put(