Hi.
I have a bunch of interactive scripts on my vagrant guest machine (ubuntu 
precise32). For example I have test.sh:

#! /bin/sh
read -p "Enter your name: " NAME
echo "Hello," $NAME


Now I want to run them from host machine (Windows) somehow. I'm doing it 
now with vagrant ssh -- -t sh test.sh

This works perfectly except for one problem: the backspace character does 
not erase the previous char but instead prints the "⌂" symbol. So I see 
something like:

Enter your name: john⌂⌂⌂⌂fred
Hello, fred


As you can see the script worked well, but during the input I have those 
strange symbols. 

Is there a way to fix that problem with backspaces? Or, maybe, there is 
another way of calling interactive scripts from host?
The ssh is from cygwin.

Also asked this question on 
serverfault<http://serverfault.com/questions/577078/interactive-commands-with-vagrant-ssh-backspace-does-not-erase-character>in
 the hope to get more chances for an answer . 

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to