try
for core> try {flags} (try_block) (catch_block)
try_block
: block to runcatch_block
: block to run if try block failsinput | output |
---|---|
any | any |
Try to run a missing command
>try { asdfasdf }
Try to run a missing command
>try { asdfasdf } catch { 'missing' }
missing
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/try.html