From c24231440f61bc4a21d4fc84003fe7be678eb87e Mon Sep 17 00:00:00 2001 From: qodelicious <162776175+qodelicious@users.noreply.github.com> Date: Thu, 22 Oct 2026 11:28:11 +0000 Subject: [PATCH] ja: update the Bash comparison table to current commands --- ja/book/coming_from_bash.md | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/ja/book/coming_from_bash.md b/ja/book/coming_from_bash.md index 6ddc7a111a8..d52b9881b85 100644 --- a/ja/book/coming_from_bash.md +++ b/ja/book/coming_from_bash.md @@ -25,25 +25,24 @@ | | `rm -t ` | Move the given file to the system trash | | `rm -rf ` | `rm -r ` | Recursively removes the given path | | `chmod` | `` | Changes the file attributes | -| `date -d ` | `echo \| str to-datetime -f ` | Parse a date ([format documentation](https://docs.rs/chrono/0.4.15/chrono/format/strftime/index.html)) | -| `sed` | `str find-replace` | Find and replace a pattern in a string | +| `date -d ` | `"" \| into datetime -f ` | Parse a date ([format documentation](https://docs.rs/chrono/0.4.15/chrono/format/strftime/index.html)) | +| `sed` | `str replace` | Find and replace a pattern in a string | | `grep ` | `where $it =~ ` | Filter strings that contain the substring | | `man ` | `help ` | Get the help for a given command | | | `help commands` | List all available commands | | | `help --find ` | Search for match in all available commands | | `command1 && command2` | `command1; command2` | Run a command, and if it's successful run a second | | `stat $(which git)` | `stat (which git).path` | Use command output as argument for other command | -| `echo $PATH` | `echo $nu.path` | See the current path | -| `` | `config set path [ ...]` | Update PATH permanently | -| `export PATH = $PATH:/usr/other/bin` | `pathvar add ` | Update PATH temporarily | -| `export` | `echo $nu.env` | List the current environment variables | -| `` | `echo $nu.env \| insert var value \| config set_into env` | Update environment variables permanently | +| `echo $PATH` | `$env.PATH` (Non-Windows) or `$env.Path` (Windows) | See the current path | +| `` | `vim $nu.config-path` | Update PATH permanently | +| `export PATH = $PATH:/usr/other/bin` | `$env.PATH = ($env.PATH \| append /usr/other/bin)` | Update PATH temporarily | +| `export` | `$env` | List the current environment variables | +| `` | `vim $nu.config-path` | Update environment variables permanently | | `FOO=BAR ./bin` | `FOO=BAR ./bin` | Update environment temporarily | -| `export FOO=BAR` | `$env.FOO = BAR` | Set environment variable for current session | -| `unset FOO` | `$env.FOO = $nothing` | Unset environment variable for current session | +| `export FOO=BAR` | `$env.FOO = "BAR"` | Set environment variable for current session | +| `unset FOO` | `hide-env FOO` | Unset environment variable for current session | | `alias s="git status -sb"` | `alias s = git status -sb` | Define an alias temporarily | -| `` | `alias --save myecho [msg] { echo Hello $msg }` | Define an alias for all sessions (persist it in startup config) | -| `` | `` | Add and edit alias permanently (for new shells), find path for the file with `config path` | +| `` | `vim $nu.config-path` | Add and edit alias permanently (for new shells) | | `bash -c ` | `nu -c ` | Run a pipeline of commands (requires 0.9.1 or later) | | `bash