bash-language-server | A language server for Bash
kandi X-RAY | bash-language-server Summary
kandi X-RAY | bash-language-server Summary
Bash language server implementation based on Tree Sitter and its grammar for Bash with explainshell integration.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of bash-language-server
bash-language-server Key Features
bash-language-server Examples and Code Snippets
fish -c "npm install -g npm@latest && npm install -g neovim bash-language-server vscode-langservers-extracted graphql -language-service-cli solidity-language-server typescript-language-server" &
Community Discussions
Trending Discussions on bash-language-server
QUESTION
In bash, I would run
(npm install -g npm@latest && npm install -g neovim bash-language-server vscode-langservers-extracted graphql -language-service-cli solidity-language-server typescript-language-server)&
to install some packages I need.
I have been trying to do the same command in fish and am having trouble. I am thinking of creating a separate file and run it with bash, but would be nice how to do this in fish. I am getting a fish: Command substitutions not allowed
error. I can run this
npm install -g npm@latest && npm install -g neovim bash-language-server vscode-langservers-extracted graphql -language-service-cli solidity-language-server typescript-language-server
, but it is not async. I have a bunch of other commands like this, hence async would be faster
Thanks
...ANSWER
Answered 2022-Mar-10 at 11:14When you place commands in parenthesis in Bash (or any POSIX shell), you are running them in a subshell, with the &
of course placing the subshell in the background.
Fish doesn't have the exact concept of a subshell, but for your particular example, you can accomplish the same goal by running in a sub-process rather than a subshell.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install bash-language-server
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page