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

stack-based language for web

Name: Anonymous 2018-03-02 17:21

I'd like to anally deform brains of web developers with a new concatenative server-side framework. it will be called Backend Forth

Name: Anonymous 2018-03-13 21:45

>>36
$ man read

...
STDOUT
Not used.


Read reads the line into a var, modifying the shell execution environment.

If there are no args it does nothing. I also don't think yours would detect an end of file.

$ man read

...
EXIT STATUS
The following exit values shall be returned:

0 Successful completion.

>0 End-of-file was detected or an error occurred.


Also, I've updated makecli.sh a bit:

#!/bin/sh

cmd=$1

printf "> "
while read -r line; do
reply=`echo "$line" | $cmd`
printf "%s\n" $reply
printf "> "
done

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