Skip to content

Error output when cd'ing into dev'd folder where path contains & #51

Open

Description

@gaggle

It looks like dev is sensitive to e.g. ampersand in paths, resulting in errornous error-like output:

$ dev --version
dev 1.8.0

$ which node
node not found

$ pwd
/Users/gaggle/Projects/pkgx-pathing-issues

$ cd foo\ \&\ bar/

$ cat package.json 
{
  "type": "module"
}

$ dev

$ which node
/Users/gaggle/.pkgx/nodejs.org/v24.4.0/bin/node

$ cd ..
-nodejs.org

$ cd foo\ \&\ bar/
[6] 49172
[6]  + done       set +a /Users/gaggle/Projects/pkgx-pathing-issues/foo
(eval):64: command not found: bar

$ which node
/Users/gaggle/.pkgx/nodejs.org/v24.4.0/bin/node

This output shows dev continues to work, but the [6] 49172 [6] + done set +a /Users/gaggle/Projects/pkgx-pathing-issues/foo (eval):64: command not found: bar presumably indicates some error somewhere.

Activity

  1. changed the title [-]Problems cd'ing into **emoji'd** sub dirs 🙈[/-] [+]Problems cd'ing into emoji'd dirs 🙈[/+] on Jul 10, 2025
  2. changed the title [-]Problems cd'ing into emoji'd dirs 🙈[/-] [+]Errors when cd'ing into `dev`'d folder where path contains `&`[/+] on Nov 29, 2025
  3. changed the title [-]Errors when cd'ing into `dev`'d folder where path contains `&`[/-] [+]Error output when cd'ing into `dev`'d folder where path contains `&`[/+] on Nov 29, 2025
  4. gaggle commented on May 7, 2026

    @gaggle
    ContributorAuthor

    On closer inspection I think this relates to a deeper issue where dev is misfiring on subfolders.

    Below I go through a script showing my system has no system-level Elixir, then I cd into intellij-flexible-elixir-monorepo which enables Elixir via dev. So far so good. We can also see Elixir remains available in subfolders.

    But when I cd back to home and then back directly into intellij-flexible-elixir-monorepo/packages then dev starts misfiring: It doesn't active the devenv, and it displays a permission denied issue on changing dirs. To my eyes this undercuts the essential property of devs direnvs:

    $ cd
    $ which elixir
    elixir not found
    $ cd ~/Projects/intellij-flexible-elixir-monorepo/
    +elixir-lang.org=1.19.5 +erlang.org=28.3.0
    $ which elixir
    ~/.pkgx/elixir-lang.org/v1.19.5/bin/elixir
    $ cd packages/
    $ which elixir
    ~/.pkgx/elixir-lang.org/v1.19.5/bin/elixir
    $ cd ~
    -elixir-lang.org=1.19.5 -erlang.org=28.3.0
    $ cd -
    ~/Projects/intellij-flexible-elixir-monorepo/packages
    no devenv detected
    (eval):1: permission denied: ~/Projects/intellij-flexible-elixir-monorepo
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions