小程序容器助力企业在金融与物联网领域实现高效合规运营,带来的新机遇与挑战如何管理?
663
2022-11-04
RunInBash是一个简单的工具,旨在使Windows命令行运行Linux应用程序更轻松,更快速
Introduction
RunInBash is a simple tool designed to make running Linux applications easier and faster under WSL. RunInBash simply runs whatever you type after it under a bash shell and pipes the output back to the parent command line. No need to worry about nested quotes, escaping arguments, or anything else! Read more about $ and RunInBash in the official release notes on our blog. Binary releases are available for download on neosmart-. RunInBash captures the exit code of the executed command and bubbles it back up to the caller, making writing complex scripts containing both Windows and Linux commands easy.
Installation
Just copy RunInBash.exe to your PATH. For best results, we recommend renaming it $.exe, allowing you to run any Linux command by simply prefixing it with $, e.g. $ ifconfig or $ git status.
An automated installer will be arriving in a future update shortly.
Screenshots & Examples
PS D:\git\RunInBash> git statusgit : The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check thespelling of the name, or if a path was included, verify that the path is correct and try again.At line:1 char:1+ git status+ ~~~ + CategoryInfo : ObjectNotFound: (git:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundExceptionPS D:\git\RunInBash> $ git statusOn branch masterYour branch is up-to-date with 'origin/master'.nothing to commit, working directory clean
And an example of escaping magic at work:
C:\Users\NeoSmart>$ printf "It's just like \"%s\"!" magicIt's just like "magic"!
And here's how RunInBash can make advanced (bash|power)shell scripting pure joy:
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~