bug-bash
[Top][All Lists]
Advanced

[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


From: Linda Walsh
Subject: "-i" doesn't seem to work when switching 'to' interactive and ignores or errors any attemps
Date: Sun, 07 Aug 2011 12:59:01 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.24) Gecko/20100228 Thunderbird/2.0.0.24 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** (cmdline
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 execution.

Obviously, when in interactive mode, it run the user's commands and then default 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?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]