Changeset 6638


Ignore:
Timestamp:
May 31, 2007, 5:43:37 PM (17 years ago)
Author:
Gary Byers
Message:

Do ~-expansion in more places. Hopefully caught most places.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/level-1/l1-files.lisp

    r6490 r6638  
    432432  (require-type reference-host '(or null string))
    433433  (multiple-value-bind (sstr start end) (get-sstring string start end)
     434    (if (and (> end start)
     435             (eql (schar sstr start) #\~))
     436      (setq sstr (tilde-expand (subseq sstr start end))
     437            start 0
     438            end (length sstr)))
    434439    (let (directory name type host version (start-pos start) (end-pos end) has-slashes)
    435440      (multiple-value-setq (host start-pos has-slashes) (pathname-host-sstr sstr start-pos end-pos))
     
    689694                  (string
    690695                   (multiple-value-bind (sstr start end) (get-sstring path)
     696                     (if (and (> end start)
     697                              (eql (schar sstr start) #\~))
     698                       (setq sstr (tilde-expand (subseq sstr start end))
     699                             start 0
     700                             end (length sstr)))
    691701                     (multiple-value-bind (host pos2) (pathname-host-sstr sstr start end)
    692702                       (unless (eq host :unspecific) (setq logical-p t))
     
    701711;; Must match pathname-directory-end below
    702712(defun pathname-directory-sstr (sstr start end host)
     713  (if (and (eq host :unspecific)
     714           (> end start)
     715           (eql (schar sstr start) #\~))
     716    (setq sstr (tilde-expand (subseq sstr start end))
     717          start 0
     718          end (length sstr)))
    703719  (let ((pos (%path-mem-last (if (eq host :unspecific) "/" ";") sstr start end)))
    704720    (if pos
Note: See TracChangeset for help on using the changeset viewer.