• Lars Ingebrigtsen's avatar
    Make call-process work if exec-path is nil · f939cd02
    Lars Ingebrigtsen authored
    * src/lread.c (openp): If exec-path is nil, no files would be
    found to execute (bug#30564).
    
    Test cases:
    
     (let ((exec-path ()))
       (call-process "/bin/ls" nil (current-buffer)))
    
    This would previously fail, but now works.
    
     (let ((exec-path '("/bin/")))
       (call-process "ls" nil (current-buffer)))
    
    This worked, and still works.
    f939cd02
lread.c 152 KB