echo as a value command
- echo gives its words as one string, and shadows the program. - With -n, -e or -E it runs the program echo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
acd84a2a4c
commit
8ded734477
5 changed files with 36 additions and 10 deletions
7
plan.org
7
plan.org
|
|
@ -288,9 +288,10 @@ the text above:*
|
|||
state, command and id; and of number and line. Alone they write text.
|
||||
- ~2>&1~ is done (phase 3): ~>FILE 2>&1~ works, ~2>&1 >FILE~ is an error.
|
||||
~>&2~ has no form in ~(std run)~ yet.
|
||||
- Not done: ~echo~. A value ~echo~ would take the name from ~/bin/echo~,
|
||||
which decision 4 does not allow; to decide.
|
||||
- Tests: ~tests/values.bjo~ (51); ~tests/run.bjo~ (34);
|
||||
- ~echo~ is a value command, and shadows the program: the one exception to
|
||||
decision 4. With ~-n~, ~-e~ or ~-E~ the program runs, since a value has
|
||||
no way to leave out the newline.
|
||||
- Tests: ~tests/values.bjo~ (56); ~tests/run.bjo~ (34);
|
||||
~tests/interactive.bjo~ (12).
|
||||
|
||||
** Phase 3: more POSIX, and the rest of the edges
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue