Skip to content

pyterm_v2.5

Compare
Choose a tag to compare
@nayas360 nayas360 released this 25 Jun 12:50

v2.5 from the old code base

changelog:

  • Added system wide support for global variables. The commands cd, ls, echo, move, copy, type, write, mkdir, rm, ren, set have all been updated to support the same.
  • Core module has also been updated.
  • Global variables can now be used to create command aliases and/or whole commands itself.
  • The syntax %(var) where var is a valid global variable is used to pass the value of the variable in the shell.

Example:-

@shell:root/> set a echo
@shell:root/> set b Hello World!
@shell:root/> set c %a %b
@shell:root/> %c Hello World!
@shell:root/> exit

In the above example a variable a is created which is an alias of the echo command. Then a variable b is created containing the string Hello World!. Then a variable c is created which is given the value %a %b to hold, this value is translated by the shell as echo Hello World!. when %c is passed to the shell it tries to execute the value of variable c. Hence the output is same as if echo Hello World! was entered directly in the shell.