unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* PWD is not seen by my emacs installation
@ 2023-08-08  1:58 Patrick Mahan
  2023-08-08 12:44 ` tpeplt
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Patrick Mahan @ 2023-08-08  1:58 UTC (permalink / raw)
  To: Help Gnu Emacs

Hardware -

   Macbook Pro 14" (Apple M1 Pro)
   Mac OS 13.1 (Ventura)

Emacs -

   Emacs 28.2 (build 1, aarch64-apple-darwin21.1.0, NS appkit-2113.00
Version 12.0.1 (Build 21A559)) of 2022-09-12)

My emacs does not see the current directory, but instead is expecting
everything to be under ~/.  I thought emacs grokked the PWD environment
variable.

From my shell -

    % echo $PWD
    /Users/mahan/src/PPP/ppp-master/pppd

But inside my .emacs I have -

(setq workingdir (getenv "PWD"))
message "PWD = '%s'" workingdir)

Which results in -

PWD = ’nil’

Unless I open using a Full pathname, it will not open the file correctly.

Suggestions?

Thanks,

Patrick


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-09-03 15:27 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-08  1:58 PWD is not seen by my emacs installation Patrick Mahan
2023-08-08 12:44 ` tpeplt
     [not found]   ` <CAFDHx1Jk=jtHhLdThFUeFpfa=yGTXoKYuu0bADYAN-j-7FjSHw@mail.gmail.com>
2023-08-09  0:59     ` tpeplt
2023-08-08 19:07 ` stefan-husmann
2023-08-08 21:21   ` Patrick Mahan
2023-08-09  5:37     ` Rudolf Schlatte
2023-08-09 20:21       ` Patrick Mahan
2023-08-22  1:14         ` David Masterson
2023-08-22  4:24           ` Patrick Mahan
2023-08-30 22:29 ` Rudolf Adamkovič
2023-08-30 23:43   ` Patrick Mahan
2023-09-03 15:27   ` Rudolf Schlatte

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).