From: Mark Buckaway (mark@datasoft.north.net)
Date: 06/15/93


From: mark@datasoft.north.net (Mark Buckaway)
Subject: backspace and shell scripts: HELP!
Date: Tue, 15 Jun 1993 12:41:17 GMT


I have a minor yet very annoying problem. In the
following shell script:

#! /bin/sh
read LINE
echo $LINE >file

..the LINE varible will contain backspace characters (CTRL-H) is
actually getting stored IF a user is on remotely. If I am at teh
console, this works fine. It does not matter if I use the SLS
supplied vt100 termcap or my own ansi termcap. It also does not
matter if I use either bash or the pd ksh. It also does not
matter if I am using raw (read -r) or cooked mode. I have my
backspace set to CTRL-H.

Help! This makes writing shell scripts next to useless for remote
input.

Ideas anyone?

Mark