# NOT RUN {
b = proc_bash()
b$start()
b$exec("x=1")
b$exec("echo $x")
b$exec("echo $x--$x--$x")
b$exec("x=abcABC123ABCabc", "echo `expr length $x` # length of x")
b$exec("foo bar") # an error
b$running()
b$stop()
# }
Run the code above in your browser using DataLab