fork download
  1. # file sh_0.file
  2. echo shellfile is running /* just echos the text following echo */
  3. defineavar=avar /* defines a variable called defineavar */
  4. echo $defineavar /* echos the value of defineavar */
  5. echo "making defineavar readonly now" /* Note the text is quoted */
  6. readonly defineavar
  7. echo "an attempt to reassign defineavar would not succeed"
  8. defineavar=newvar
Runtime error #stdin #stdout 0.02s 5316KB
stdin
Standard input is empty
stdout
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