From bc4f0d76ca7473b4a4bb1efbd4db56d9a6cf4f99 Mon Sep 17 00:00:00 2001 From: Kare Morstol Date: Fri, 25 Sep 2015 02:26:37 +0200 Subject: [PATCH] Return exit code 127 on InAccessibleExecutable. --- SwiftShell/Command.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } } }