Handle :directory nil as advertised, not changing the current directory.
Fixes lp#1265077.
with bad constants. (reported by Douglas Katzman)
* bug fix: CLISP can be used again as a cross-compilation host.
(Thanks to Vasily Postnicov, lp#1261451)
+ * bug fix: run-program crashed with :directory nil. (lp#1265077)
changes in sbcl-1.1.14 relative to sbcl-1.1.13:
* optimization: complicated TYPEP tests are less opaque to the type
(if-error-exists :error)
status-hook
(external-format :default)
- (directory nil directory-p))
+ directory)
#+sb-doc
#.(concatenate
'string
proc
(progname (native-namestring program))
(args (prepare-args (cons progname args)))
- (directory (and directory-p (native-namestring directory)))
+ (directory (and directory (native-namestring directory)))
;; Gag.
(cookie (list 0)))
(unwind-protect
(assert
(equal directory
(string-right-trim '(#\Return) (read-line out))))))
+
+(with-test (:name (:run-program :directory-nil))
+ (sb-ext:run-program #-win32 "/bin/sh"
+ #-win32 '("-c" "pwd")
+ #+win32 "cmd.exe"
+ #+win32 '("/c" "cd")
+ :directory nil
+ :search t))