Make note about *input* only being available in user namespace (#453)
This commit is contained in:
parent
d5d0c32a8b
commit
d4492071b6
1 changed files with 2 additions and 0 deletions
|
|
@ -311,6 +311,8 @@ $ cat script.clj
|
|||
|
||||
In one-liners the `*input*` value may come in handy. It contains the input read from stdin as EDN by default. If you want to read in text, use the `-i` flag, which binds `*input*` to a lazy seq of lines of text. If you want to read multiple EDN values, use the `-I` flag. The `-o` option prints the result as lines of text. The `-O` option prints the result as lines of EDN values.
|
||||
|
||||
> **Note:** `*input*` is only available in the `user` namespace, on other namespaces use `*in*`.
|
||||
|
||||
The following table illustrates the combination of options for commands of the form
|
||||
|
||||
echo "{{Input}}" | bb {{Input flags}} {{Output flags}} "*input*"
|
||||
|
|
|
|||
Loading…
Reference in a new issue