Skip to content

Error when entering or leaving a project with .env or .env.leave file #239

Open
@alexlyttle

Description

@alexlyttle

Platform

  • Operating system and version? macOS Sonoma 14.5 arm64
  • Shell and version? zsh 5.9
  • autoenv installation method: homebrew
  • autoenv version: 0.3.0

Describe the bug

When I change to a directory with a .env file it executes the file followed by this error:

(eval):1: bad pattern: ^[[01

I have tried this on the simplest of .env file, e.g.

echo "Hello"

and still get the error. The output when changing the directory is:

Hello
(eval):1: bad pattern: ^[[01

The .env file appears to execute fully, I am just not sure where the error comes from.

Expected behavior

In the above example, expected output would be,

Hello

Additional context

I have export AUTOENV_ENABLE_LEAVE=1 in my .zprofile.

I have tried uninstalling and reinstalling autoenv.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions