Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 1.55 KB

README.md

File metadata and controls

36 lines (31 loc) · 1.55 KB

echo

A Linux-style echo utility for Mike Riley's Elf/OS.

echo displays the command tail, with backslash substitution.

SYNOPSIS

     echo [SHORT-OPTION]... [STRING]...

DESCRIPTION

Echo the STRING(s) to standard output.
-eenable interpretation of backslash escapes
-Edisable interpretation of backslash escapes (default)
--helpdisplay this help and exit
If -e is in effect, the following sequences are recognized:
\\backslash
\aalert (BEL)
\bbackspace
\cproduce no further output
\eescape
\fform feed
\nnew line
\rcarriage return
\thorizontal tab
\vvertical tab
\0NNNbyte with octal value NNN (1 to 3 digits)
\xHHbyte with hexadecimal value HH (1 to 2 digits)

The source was assembled with a modified version of the A18 assembler. The header files `bios.inc` and `kernel.inc` are slightly modified versions of Mike Riley's files; the `#ifdef...#endif` bits have been removed or unconditionally included as appropriate, `#define`s changed to `equ`, and upper/lower casing was made consistent.