Steel Bank Common Lisp

SB-EXT:RUN-PROGRAM Fails when DIRECTORY is NIL

Reported by Wilfredo Velazquez on 2013-12-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Undecided
Unassigned

Bug Description

The documentation for SB-EXT:RUN-PROGRAM states the following:

:directory
  Specifies the directory in which the program should be run. nil (the default) means the directory is unchanged.

This implies that you should be able to explicitly pass DIRECTORY as NIL ala

(run-program "my-program" () :directory nil)

However, doing so signals a type error:

The value NIL
is not of type
  (OR (VECTOR CHARACTER) (VECTOR NIL) BASE-STRING PATHNAME
      FILE-STREAM).
   [Condition of type TYPE-ERROR]

I've attached a simple patch to fix this.

Stas Boukarev (stassats) wrote :

In 82cd148d729c241e79c8df04b700beec1b7c55de, thanks.

Changed in sbcl:
status: New → Fix Committed
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers