Skip to content

Commit 37e37e0

Browse files
committed
Changes from review
1 parent 3e41256 commit 37e37e0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

book/quick_tour.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ ps | where status == Running
108108
```
109109

110110
::: tip
111-
Remember above, where the `size` column from the `ls` command was a `filesize`? In this case, `status` may look like an "enum" type from some programming languages,
112-
but here it's really a normal `string`.
111+
Remember above, where the `size` column from the `ls` command was a `filesize`? Here, `status` is really just a string, and
112+
you can use all the normal string operations and commands with it, including (as above) the `==` comparison.
113113

114114
You can examine the types for the table's columns using:
115115

@@ -133,6 +133,12 @@ ls
133133
| cp $in ~
134134
```
135135

136+
::: tip Nushell Design Note
137+
Whenever possible, Nushell commands are designed to act on pipeline _input_. However, some commands, like `cp` in this example, have two (or more)
138+
arguments with different meanings. In this case, `cp` needs to know both the path to _copy_ as well as the _target_ path. As a result, this command is
139+
more ergonomic with two _positional parameters_.
140+
:::
141+
136142
::: tip
137143
Nushell commands can extend across multiple lines for readability. The above is the same as:
138144

0 commit comments

Comments
 (0)