Skip to content

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

License

Notifications You must be signed in to change notification settings

mecparts/Elf-Elfos-echo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.