# file sh_0.fileecho shellfile is running /* just echos the text following echo */defineavar=avar /* defines a variable called defineavar */echo $defineavar /* echos the value of defineavar */echo "making defineavar readonly now" /* Note the text is quoted */readonly defineavarecho "an attempt to reassign defineavar would not succeed"defineavar=newvar
Standard input is empty
shellfile is running /* just echos the text following echo */ /* echos the value of defineavar */ making defineavar readonly now /* Note the text is quoted */ an attempt to reassign defineavar would not succeed
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!