Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Mention env in error for bash-style environment overrides #809
The question of how to set environment exports for a single command line came up twice today in the IRC channel, and in multiple issues submitted here lately. It's a common gotcha.
Currently if you try the bash syntax, you get a nice error except it's not too relevant:
Perhaps fish could detect if there was any tokens following the environment assignment (ie. a command) and in that case instead print an error message suggesting