Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elaborate on escaping details #270

Merged
merged 1 commit into from
Mar 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions book/escaping.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Escaping to the system

Nu provides a set of commands that you can use across different OSes, and having this consistency is helpful. Sometimes, though, you want to run a command that has the same name as Nu commands. To run the local `ls` or `date` command, for example, you use the caret (^) command.
Nu provides a set of commands that you can use across different OSes ("internal" commands), and having this consistency is helpful. Sometimes, though, you want to run an external command that has the same name as an internal Nu command. To run the external `ls` or `date` command, for example, you use the caret (^) command. Escaping with the caret prefix calls the command that's in the user's PATH (e.g. `/bin/ls` instead of Nu's internal `ls` command).

Nu command:
Nu internal command:

```
> ls
```

Escape to local command:
Escape to external command:

```
> ^ls
Expand Down