MACSCRPT Archives

June 2013

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
jeff donovan <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Wed, 26 Jun 2013 22:53:25 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (17 lines)
greetings,

I have a shell scrip that requires a Users input. How can I map the delete key incase they make a mistake ?

example;

echo " hey enter some words ";
read X
##now user types something
lets say soimethiong^H^H
-----

## and foo bars it and try to hit delete.

Is there a way I can map the delete key prior to this operation ? using osx.
thanks for any advice
-j

ATOM RSS1 RSS2