diff --git a/VERSION b/VERSION index 6acdb4428..26e33797a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.3 \ No newline at end of file +2.0.4 \ No newline at end of file diff --git a/overlay/etc/nu/scripts/bf/x.nu b/overlay/etc/nu/scripts/bf/x.nu index cc97370ad..8ba41af34 100644 --- a/overlay/etc/nu/scripts/bf/x.nu +++ b/overlay/etc/nu/scripts/bf/x.nu @@ -1,4 +1,5 @@ use dump.nu +use handle.nu # Set BF_X to the name of the script and then execute it export def main [ @@ -8,5 +9,6 @@ export def main [ let name = if ($path | str length) > 15 { $path | path basename } else { $path } # set X variable and execute - with-env {BF_X: $name} { ^nu $path } + let on_failure = {|code, err| print --no-newline --stderr $err ; exit $code } + { with-env [BF_X $name] { ^nu $path } } | handle x -f $on_failure }