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

Bug #1265077 reported by Wilfredo Velázquez-Rodríguez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
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.

Revision history for this message
Wilfredo Velázquez-Rodríguez (zulu-inuoe) wrote :
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.