[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
"-i" doesn't seem to work when switching 'to' interactive and ignores or
"-i" doesn't seem to work when switching 'to' interactive and ignores or errors any attemps
Sun, 07 Aug 2011 12:59:01 -0700
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:126.96.36.199) Gecko/20100228 Thunderbird/188.8.131.52 Mnenhy/0.7.6.666
I'm running shell script that will often run 'unattended' (batch),
however, for testing and future flexablity, I wish to add an **option**
arg) to, after defining the utils of the lib, enter normal interactive mode,
so the user could invoke the library calls from the cmdline, set or change
variables , and then either exit the script entirely, OR continue it's
Obviously, when in interactive mode, it run the user's commands and then
to going back to the prompt. But if the script is invoked normally --
it would be
have as a normal script with no interactivity...
What I'd like to do, is something along the lines of
starting 'readline' have it read in my current ENV's idea of history,
(append to it),
and be exactly as though it was a normal interactive shell...
I tried somethind with 'read/eval', but there seems to be no way, even
using read -e, to get to really use the same instance of readline as
it would interactively...
Maybe I'm going about this all wrong, but is this a deadend?
|[Prev in Thread]
||[Next in Thread]|
- "-i" doesn't seem to work when switching 'to' interactive and ignores or errors any attemps,
Linda Walsh <=