3 ms·
How could it check that the command from bash history successfully ran? I often iterate about 10 times to get the right command, so that's 9 errors in the hist
by banku_brougham 8y ago
How could it check that the command from bash history successfully ran? I often iterate about 10 times to get the right command, so that's 9 errors in the history.
- Sreyanth 8y agoMay be extend a bit further to check if the return value is 0? Can be accessed via `$?` in most non-Windows systems.