Ticket #992: getenv.diff
File getenv.diff, 895 bytes (added by , 12 years ago) |
---|
-
peep.scm
77 77 78 78 (when (extension-information 'readline) 79 79 (require 'readline) 80 (unless (string=? "dumb" (get env"TERM"))80 (unless (string=? "dumb" (get-environment-variable "TERM")) 81 81 (current-input-port (make-gnu-readline-port)) 82 82 (gnu-history-install-file-manager 83 (string-append (or (get env"HOME") ".") "/.peep.history")) ) )83 (string-append (or (get-environment-variable "HOME") ".") "/.peep.history")) ) ) 84 84 85 85 (define .get) 86 86 (define .set) … … 233 233 (sprintf "peep(~a)> " *current-pass*))) 234 234 235 235 (cond ((file-exists? ".peeprc") (load ".peeprc")) 236 ((get env"HOME") =>236 ((get-environment-variable "HOME") => 237 237 (lambda (h) 238 238 (cond ((file-exists? (make-pathname h ".peeprc")) => load) ) ) ) )