Try to search your question here, if you can't find : Ask Any Question Now ?

Resolving " ${ is not a valid variable in fish" error when installing ghc (the Haskell compiler) on MacOs with fish

HomeCategory: stackoverflowResolving " ${ is not a valid variable in fish" error when installing ghc (the Haskell compiler) on MacOs with fish
Avatarkundan asked 1 week ago

When following these instructions for installing ghc, the installer presented me with this question.

Detected ~/.bashrc on your system...
If you want ghcup to automatically fix your ~/.bashrc to include the required PATH variable
answer with YES and press ENTER (at your own risk).

To which I responded “yes.”

This added a file at Users/admin/.ghcup/env which was automatically set to be sourced by my .bashrc file. However, after sourcing my .bashrc file, the compiler was still not added to my PATH environment variable. So I tried sourcing Users/admin/.ghcup/env directly and got this error.

~/.ghcup/env (line 1): ${ is not a valid variable in fish.
export PATH="$HOME/.cabal/bin:${GHCUP_INSTALL_BASE_PREFIX:=$HOME}/.ghcup/bin:$PATH"
1 Answers
Best Answer
AvatarAmit answered 1 week ago
Your Answer

0 + 5 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com