Posted 05 February 2013 - 04:30 PM
Title:shell argmument execution behaviour
So I tried to call a shell with arguments to run a string that has been verified to be a valid program (I do not want to run it in the same shell as the current program)
I used shell.run("shell", cmd) to accomplish this and here is what I expected:
new shell loads, reads command line arguments, executes given command(s), shell exists
here is what happened:
new shell loads, shell prints boot message, reads command line aruments, executes given command using other commands as additional parameters for the first program, shell waits for input
Any chance to get the desired result without rewriting the shell?
also: touch, cat?
So I tried to call a shell with arguments to run a string that has been verified to be a valid program (I do not want to run it in the same shell as the current program)
I used shell.run("shell", cmd) to accomplish this and here is what I expected:
new shell loads, reads command line arguments, executes given command(s), shell exists
here is what happened:
new shell loads, shell prints boot message, reads command line aruments, executes given command using other commands as additional parameters for the first program, shell waits for input
Any chance to get the desired result without rewriting the shell?
also: touch, cat?