Hi All.

        I have the following script to correct the delete and backspace
keys under pico/pine:

-Begin---------------------------

#!/etc/alternatives/expect

eval spawn -noecho $argv

interact {
 \177 {send "\008"}
 "\033\[3~"  {send "\004"} }

# Now
# picofix pico
# should work (then you can make an alias or a wrapper). 

-End------------------------------

        However, now I am trying to add some args to pico and I am not
being able to pass then over this simple expect "wrapper" executed as:
picofix pico. I already tried to use:

        #!/etc/alternatives/expect --

so that the $argv variable would contain my alias: alias pico 'pico -e -k',
but no success.

        Any hints?

        Thanks,

                Daniel.

_______________________________________________________________________
Daniel Doro Ferrante                 email: [EMAIL PROTECTED]
Network & System Administrator &            [EMAIL PROTECTED]
WebMaster                                   [EMAIL PROTECTED]
                                    http://www.cecm.usp.br/~danieldf
                                    http://www.latt.if.usp.br/~danieldf
CECM - Curso de Ci?ncias Moleculares - USP
       Course of Molecular Sciences - University of S?o Paulo - Brazil

Reply via email to