2020-06-23 20:21:47 +02:00
# Philosophy
2019-06-06 19:58:39 +02:00
> This document contains philosophical notes about nu.
2020-06-23 20:21:47 +02:00
## Bare Words
2019-06-06 19:58:39 +02:00
In Nu, bare words work the same way they do in most shells.
In most shells, bare words serve two purposes:
2020-06-23 20:21:47 +02:00
```bash
2019-06-06 19:58:39 +02:00
$ ls
# ^^ the name of a command
$ cat Cargo.toml
# ^^^^^^^^^^ a string
```
Nu adopts this shell idiom.
Consequences:
2020-06-23 20:21:47 +02:00
- Bare words cannot also refer to variables. Variable names are prefixed with `$` .
- Bare words, in almost all contexts, cannot be keywords.
- Numbers and operators aren't bare words.
2019-06-06 19:58:39 +02:00
2020-06-23 20:21:47 +02:00
## One Screen
2019-06-06 19:58:39 +02:00
2020-06-23 20:21:47 +02:00
The utility of a command's output drops off extremely rapidly after a full screen of content.
2019-06-06 19:58:39 +02:00
By default, Nu prefers to present output that can fit into a screen rather than more complete output that spans many screens.
For example, this is the rationale for `ls` returning a flat table containing the files in the current directory, rather than presenting a tree of data by default.