Skip to content

Commit 767baa8

Browse files
authored
Fix outdated commands in coming_from_bash.md (#1688)
* fix typo in tmp/random * fix typo in stat git
1 parent 0df484a commit 767baa8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/coming_from_bash.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ $env.Path = ($env.Path | prepend 'C:\Program Files\Git\usr\bin')
5252
| | `help commands` | List all available commands |
5353
| | `help --find <string>` | Search for match in all available commands |
5454
| `command1 && command2` | `command1; command2` | Run a command, and if it's successful run a second |
55-
| `stat $(which git)` | `stat (which git).path` | Use command output as argument for other command |
56-
| `echo /tmp/$RANDOM` | `$"/tmp/(random integer)"` | Use command output in a string |
55+
| `stat $(which git)` | `stat ...(which git).path` | Use command output as argument for other command |
56+
| `echo /tmp/$RANDOM` | `$"/tmp/(random int)"` | Use command output in a string |
5757
| `cargo b --jobs=$(nproc)` | `cargo b $"--jobs=(sys cpu \| length)"` | Use command output in an option |
5858
| `echo $PATH` | `$env.PATH` (Non-Windows) or `$env.Path` (Windows) | See the current path |
5959
| `<update ~/.bashrc>` | `vim $nu.config-path` | Update PATH permanently |

0 commit comments

Comments
 (0)