public static String getUserShell ( ) throws EnvironmentException { if ( isMacOsX ( ) ) { return getMacUserShell ( ) ; } if ( isWindows ( ) ) { return getWindowsUserShell ( ) ; } if ( isUnix ( ) ) { return getUnixUserShell ( ) ; } String message = "Environment operations not supported on unrecognized operatings system" ; UnsupportedOperationException cause = new UnsupportedOperationException ( message ) ; throw new EnvironmentException ( cause ) ; }
Gets the user s shell executable .