diff --git a/SwiftShell/Command.swift b/SwiftShell/Command.swift index 66deeab..f090eb4 100644 --- a/SwiftShell/Command.swift +++ b/SwiftShell/Command.swift @@ -114,7 +114,8 @@ public enum ShellError: ErrorType, Equatable { case .ReturnedErrorCode(let code): return code case .InAccessibleExecutable: - return EXIT_FAILURE + // according to http://tldp.org/LDP/abs/html/exitcodes.html + return 127 } } }