Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

globalias expands in quotes, makes setting some ENV VAR values impossible #12047

Open
ttytm opened this issue Nov 19, 2023 · 0 comments
Open
Assignees
Labels
Bug Something isn't working

Comments

@ttytm
Copy link

ttytm commented Nov 19, 2023

Describe the bug

E.g., it should be possible to use ENV_VAR=<value_that_matches_alias> <my_command> <my_arg>

Steps to reproduce

Make sure globalias is enabled.

Try prefixing a command with an env var like:

DEBUG=1<space> # will expand to `DEBUG=cd -1`
# or
DEBUG="1"<space> # will expand. Note: space is after quote
# or
DEBUG='1'<space> # will expand

Expected behavior

Screenshots and recordings

No response

OS / Linux distribution

Linux

Zsh version

5.9

Oh My Zsh version

master~9 (1868c15)

Terminal emulator

kitty

If using WSL on Windows, which version of WSL

None

Additional context

No response

@ttytm ttytm added the Bug Something isn't working label Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

2 participants