You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
setenv.fish broken when trying to make it behave like export #3937
Version info
fish, version 2.5.0-296-g28bc309f
Linux wafer 4.4.0-64-generic Website stylesheet and Google Chrome #85-Ubuntu SMP Mon Feb 20 11:50:30 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Command
setenv PATH /bin
Response
$/ is not a valid variable in fish.
/usr/local/share/fish/functions/setenv.fish (line 9): set -gx $v $$v
^
in function “setenv”
called on standard input
with parameter list “PATH /bin”
Thanks for catching that. I had somehow gotten it into my head that setenv used the same var=val syntax as export. I'll add unit tests for both functions to help ensure we don't introduce a regression in the future.
Activity
krader1961 commentedon Apr 4, 2017
Thanks for catching that. I had somehow gotten it into my head that
setenvused the samevar=valsyntax asexport. I'll add unit tests for both functions to help ensure we don't introduce a regression in the future.fix `setenv` and add unit tests