mirror of
https://github.com/danbulant/nushell
synced 2026-05-19 20:38:40 +00:00
789 B
789 B
Beaking Changes
This file attempts to list all breaking changes that came with the new engine update.
Variable Name Changes
$nu.home-diris now called$nu.home-path$nu.temp-diris now called$nu.temp-path$nu.pathis a regular environment variable:$nu.env.PATH(Unix) or$nu.env.Path(Windows)- All config is now contained within
$configwhich can be initialized byconfig.nu. There is noconfig.tomlanymore.
if
if {} {} is now if {} else {}
main Command in Scripts
If the script contains main it will be ran after all the script is executed.
It also accepts arguments from the command line.
You can run it like this: nu foo.nu arg1 --flag of if the script contains a hashbang line (#!/usr/bin/env nu): ./foo.nu arg1 --flag.