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
Our upgrade path from bash to a better language and runtime. OSH runs your existing shell scripts. YSH is for Python and JavaScript users who avoid shell! Oils 2023 FAQ | Why Create a New Unix Shell? | The Simplest Explanation | Posts Tagged #FAQ | A Tour of YSH | YSH vs. Shell Idioms oilshell/oil on GitHub Discuss on Zulip: oilshell.zulipchat.com #oil-help is for users to ask questions. We welcom
Crush is an attempt to make a traditional command line shell that is also a modern programming language. It has the features one would expect from a modern programming language like a type system, closures and lexical scoping, but with a syntax geared toward both batch and interactive shell usage. The overview gives a detailed overview of the features of Crush. The syntax documentation contains mo
GitHubのExplore repositoriesにたまたま表示されていた TopShell が気になったので、ここで紹介する。 github.com TopShell開発の動機は TopShell: Reimagined Terminal and Shell · topshell-language/topshell Wiki · GitHub に書いてあるが、要点をまとめると「古典的なUnixシェルを使うのはつらい。いいところだけを抜き出して、全くシェルを考えたら、どうなるだろうか?」ということらしい。 Unixシェルのだめなところ 未定義の変数を使ってもエラーにならない【デフォルトで。set -u を使えばエラーになる。】 コマンドがエラーになってもスルーされる【デフォルトで。set -e とか set -opipefail を使えばエラー時に中断される。】 全部のデータが文字列
少し前にvimからneovimに移行したのですが、 vimよりさくさくな気がする、程度でneovimの機能を特に活用していませんでした。 実はneovimにはterminal emulatorという機能があり、vimの中でshellを起動することができます。 例えばコードを書きつつ、rspecを実行したりpryやtigを使ったりなど、非常に便利です。 gyazo.com 簡単な使い方の紹介 terminal emulatorを起動するには:terminalを実行します。 起動すると最初はキーバインドがterminal modeになっています。 そのままlsなどを実行すれば実行できると思います。 <C-\><C-n>でcommand modeにすることができます。 command modeから再びterminal modeにするには、insert modeに入るときのようにiやaなどでできま
XONSH is a Python-powered shell Xonsh is a Python-powered, cross-platform, Unix-gazing shell language and command prompt. The language is a superset of Python 3.6+ with additional shell primitives that you are used to from Bash and IPython. It works on all major systems including Linux, OSX, and Windows. Xonsh is meant for the daily use of experts and novices. Install Docs Github Donate What is Xo
egzactというコマンドの詰め合わせセットを作ってみました。 → Github きっかけ zipで多重圧縮するのに、$ zip ファイル | zip | tee zip1 | zip | tee zip2 | zip | tee zip3 。。みたいなの出来ない? #シェル芸 #usptomo — ぱぴろん (@papiron) 2016年3月25日 これはあるシェル芸界隈1の方の発言です。アンチウイルスソフトの動作確認で、多重ZIPされたテストウイルスファイルが必要だったとのことです。何人かの方からアドバイスを頂いていたようですが、残念ながらシェルでサクッっとは結局できなかったご様子でした2。 この事例は、シェル上でのワンライナー(a.k.a シェル芸3)の弱点の一つを如実に表しています。文字列を切り出したり、変換したりというフィルタリングの処理は得意ですが、パターン生成が比較的苦手で
「確かに人事にはLinuxができる人が欲しいとは言ったが、まさか顔合わせでcurlとgrepでプリキュア全員の名前を端末で出力するような奴が来るとは思わなかった。」 — ぐれさん (@grethlen) 2014, 10月 21 クローラー/Webスクレイピング Advent Calendar 2015の7日目です。 IT企業を志望する就活生の方々は「FizzBuzzで100まで数えろ」とか「素数を表示しろ」とかいきなり言われても、得意な言語でならサクッと実装できるスキルは身につけておきたいですね。いつ面接で聞かれるかわかりません。 そして当然のごとく「プリキュア全員表示しろ」と言われても対応できるようにしておくべきでしょう。文字列処理、Webスクレイピングの基本が身についているかどうかがこの問い一つでわかります。面接で既に出題された方も少なくないのでは? そこで、いくつかのアプローチでW
$ bash --version GNU bash, version 4.3.30(1)-release (x86_64-apple-darwin14.0.0) パイプ (pipe) commandA | commandB 正式にはPipeline。|&でも動く(2019/03/16補足: |& では標準出力と標準エラー出力を次のプロセスの標準入力につなぎます)。 $ man bash より Pipelines A pipeline is a sequence of one or more commands separated by one of the control operators | or |&.
Use turtle if you want to write light-weight and maintainable shell scripts. turtle embeds shell scripting directly within Haskell for three main reasons: Haskell code is easy to refactor and maintain because the language is statically typedHaskell is syntactically lightweight, thanks to global type inferenceHaskell programs can be type-checked and interpreted very rapidly (< 1 second)These featur
Mosh の REPL が Ctrl-D で抜けられないとご指摘いただいていた件。 そもそも Ctrl-D って何だっけ?と立ち止まり調べましたが当たり前すぎて(?)記事にすらなってないので書いておきます。 ユーザーから見た Ctrl-D 入力終了を対話型のプログラムにしらせることに使う。 例えば irb から抜けるとき。 dekisugi% irb irb(main):001:0> puts "Hello" Hello => nil irb(main):002:0> # Ctrl-D で irb から抜ける その対話型プログラムが持つ exit や quit などの終了コマンドを入力するよりも楽ですね。 人によっては Ctrl-C を使う場合もあるかもしれません。(そのプログラムが SIGINT をどう扱っているかに依存するので、Ctrl-c で終了しない場合もよくあります。) 追記 i
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く