Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

suckless unix tools

Name: Anonymous 2015-04-02 21:41

Name: Anonymous 2015-04-03 20:59

It lacks error handling, below is bash's echo
$ echo test > /dev/full
bash: echo: write error: No space left on device
$ echo $?
1


Bellow is suckmore's echo
$ echo test > /dev/full
$ echo $?
0


Based on POSIX if an error has occurred echo should return a value bigger than 0. It also may use stderr for diagnostic messages.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List