Read-eval loop with prompt + user input

Martin Drautzburg martin.drautzburg at web.de
Thu Mar 14 06:59:26 UTC 2002


Is there a way to write a read-eval loop, so I get some sort of
commandline shell without any need for the mouse ? I mean something
like (in bash)

        while true
        do
                echo -n "prompt> "
                read command
                eval $command
        done




More information about the Squeak-dev mailing list