Changeset 6643


Ignore:
Timestamp:
Jun 3, 2007, 2:42:23 AM (17 years ago)
Author:
Gary Byers
Message:

~-expansion stuff; may not match trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ide-1.0/ccl/level-1/l1-files.lisp

    r6490 r6643  
    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                     #+no
     697                     (if (and (> end start)
     698                              (eql (schar sstr start) #\~))
     699                       (setq sstr (tilde-expand (subseq sstr start end))
     700                             start 0
     701                             end (length sstr)))
    691702                     (multiple-value-bind (host pos2) (pathname-host-sstr sstr start end)
    692703                       (unless (eq host :unspecific) (setq logical-p t))
     
    701712;; Must match pathname-directory-end below
    702713(defun pathname-directory-sstr (sstr start end host)
     714  (if (and (eq host :unspecific)
     715           (> end start)
     716           (eql (schar sstr start) #\~))
     717    (setq sstr (tilde-expand (subseq sstr start end))
     718          start 0
     719          end (length sstr)))
    703720  (let ((pos (%path-mem-last (if (eq host :unspecific) "/" ";") sstr start end)))
    704721    (if pos
Note: See TracChangeset for help on using the changeset viewer.