Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ipython には、ipython のシェル コマンドがゼロ以外の値を返す場合にスクリプトの実行を停止するbash の「-e」に似た設定がありますか?
直接ではありません。ただし、!fooシェル コマンドの後、終了コードは value として保存されます_exit_code。したがって、スクリプトはそれをチェックしてエラーをスローできます。
!foo
_exit_code
何らかの理由で、私のシステムではすべての終了コードが 256 倍になります。