bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

behaviour of `load' with $ characters


From: Tom Capey
Subject: behaviour of `load' with $ characters
Date: Fri, 1 Jun 2001 14:33:33 +0100

In GNU Emacs 20.6.1 (i386-*-nt5.0.2195)
 of Thu Mar  9 2000 on CARDINALE
configured using `configure NT'

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

  the behaviour of `load' seems aberrant with respect to $
  substitution.  it attempts to expand the $ in the code below.
  (the example is for a UNC path, but the same behaviour is
  observed for "c:/"-style device paths).

(load "//spanna/Apps$$/hello.el")  ==> t
(load "//spanna/Apps$/hello.el") error
(load "/://spanna/Apps$$/hello.el") ==> t
(load "/://spanna/Apps$/hello.el") error

(file-exists-p "//spanna/Apps$$/hello.el") ==> nil
(file-exists-p "//spanna/Apps$/hello.el")  ==> t
(file-exists-p "/://spanna/Apps$$/hello.el") ==> nil
(file-exists-p "/://spanna/Apps$/hello.el") ==> t


Error stack trace:
Signaling: (error "Substituting nonexistent environment variable \"\"")
  load("//spanna/Apps$/hello.el")
  eval((load "//spanna/Apps$/hello.el"))
  eval-last-sexp(nil)
  call-interactively(eval-last-sexp)


/Tom
-- 
``Walk on!  Walk on!  With hope in your heart;
  And you're in for a big surprise!'' -- Dave Frishberg



reply via email to

[Prev in Thread] Current Thread [Next in Thread]