Posts

Showing posts from November 3, 2018

First language designed to support embedding?

Image
Clash Royale CLAN TAG #URR8PPP up vote 3 down vote favorite Some languages like Python, Lua, and Tcl are designed with the intention that you can easily embed the interpreter into some other native program. For example, many VFX applications like Nuke, Maya, and Houdini have an embedded Python script editor that executes the Python scripts in-process so they can manipulate the host application. Lua is popular as a language embedded in some games. What was the first such scripting language that was specifically intended to be hosted inside of some other large host process, rather than just being invoked externally by shelling out the way you might execute a typical Bash or Perl script? programming share | improve this question asked 8 hours ago wrosecrans 119 3 New contributor wrosecrans is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct. 1 Tough

Running a Test with expression in a string

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite I am trying to run the test command from a string. The string contains the expression. TEST="! -e ~/bin/xyz" if [ `echo "$TEST"` ]; then echo running "$TEST"; fi However, the above if condition does evaluate to true but if I plug in the command directly (as below), it evaluates to false. if [ ! -e ~/bin/xyz ]; then echo running; fi The second snippet's behavior is correct. Can someone help me understand why there is a difference and also how I can correct the first snippet to give me the right result? linux test share asked 7 mins ago Ashwin 1 New contributor Ashwin is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct. add a comment  |  up vote 0 down vote favorite I am trying to run the test command from a string. The string contains t