Skip to content

.env can't interpret ${letter} in a value #2823

@u9g

Description

@u9g

What version of Bun is running?

0.6.0 latest canary of writing this

What platform is your computer?

Linux 5.17.0-1021-oem x86_64 x86_64

What steps can reproduce the bug?

  1. make a .env with the contents: ```
    A="a$t"
2. make a `a.ts` with the contents: ```
console.log(process.env.A)
  1. bun run a.ts => prints a and nothing else

What is the expected behavior?

print a$t

What do you see instead?

$ bun run a.ts
[0.07ms] ".env"
a

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbundlerSomething to do with the bundler

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions