Skip to content

Augment env based on a special variable #1

@ruricolist

Description

@ruricolist

It would be nice if you could cons to an alist and have that alist be used to initialize the environment for the program (without changing the environment variables of the Lisp environment).

E.g.

(let ((*cmd-env* (acons "DEBUG" "1" *env*)))
  (values (getenv "DEBUG")
          ($cmd "bash -c 'echo $DEBUG'")))
=> NIL, "1"

This would be easy to do just for Unix, but Windows is harder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions