Ticket #992: getenv.diff

File getenv.diff, 895 bytes (added by Christian Kellermann, 12 years ago)
  • peep.scm

     
    7777
    7878(when (extension-information 'readline)
    7979  (require 'readline)
    80   (unless (string=? "dumb" (getenv "TERM"))
     80  (unless (string=? "dumb" (get-environment-variable "TERM"))
    8181    (current-input-port (make-gnu-readline-port))
    8282    (gnu-history-install-file-manager
    83      (string-append (or (getenv "HOME") ".") "/.peep.history")) ) )
     83     (string-append (or (get-environment-variable "HOME") ".") "/.peep.history")) ) )
    8484
    8585(define .get)
    8686(define .set)
     
    233233   (sprintf "peep(~a)> " *current-pass*)))
    234234
    235235(cond ((file-exists? ".peeprc") (load ".peeprc"))
    236       ((getenv "HOME") =>
     236      ((get-environment-variable "HOME") =>
    237237       (lambda (h)
    238238         (cond ((file-exists? (make-pathname h ".peeprc")) => load) ) ) ) )