PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > Line editing
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

Line editing

Réponse
 
LinkBack Outils de la discussion
Vieux 28/08/2006, 05h03   #1
Salve Håkedal
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Line editing

Prompting for input from a script with:

echo "What do you think?"
read

I start typing, but want to correct, by useing left
arrow I get:

I hardly thi^[[D


How is that done better?
  Réponse avec citation
Vieux 28/08/2006, 05h15   #2
Alan Connor
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Line editing

On comp.unix.shell, in <CMydnfh_q5KS9m_ZRVn_vA@telenor.com>,
"Salve Hakeda" wrote:

<article not downloaded:
http://slrn.sourceforge.net/docs/README.offline>

Don't use non-us-ascii characters in your headers. It breaks
too much news software and violates the RFCs.

For one thing, they make it impossible to examine your posting
history in the Usenet Archives at:

http://groups.google.com/advanced_group_search

For another, there's no point in it: We don't know how those
weird characters are pronounced anyway, and they make you look
like a phukwitted troll trying to pretend he's a foreigner. Nor
do we have those characters on our keyboards. Duh.

I'm very good at line editing, from vi to ed to sed to awk
to bash, but I don't people who violate the RFCs.

And make it impossible to search examine their posting histories.

Alan

--
If you replied to an article of mine and are wondering
why I didn't respond to you, the fact is that I didn't
even download your article. For an explanation, see:
http://home.earthlink.net/~alanconnor/newsfilter.html
  Réponse avec citation
Vieux 28/08/2006, 05h16   #3
Anal Honor 28 Aug 2006 04:16:16 GMT
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Re: Line editing Information about "Alan Connor"

This is an autogenerated message.


Alan doesn't believe in anyone else's existence ...

Alan accuses practically everyone of being sock puppets.
Apparently, Alan is the only real person in the newsgroups in which he posts.
(Even Roosta and his towel aren't real.) Recently, Alan has told everyone that
we are all Morely Dotes' sock puppets. In earlier cycles,
we were all apparently sock puppets of Ben Finney.
The choice appears to be arbitrary.

http://www.pearlgates.net/nanae/kooks/ac/fga.shtml


Who is Alan Connor?

Alan "The Usenet Beavis" Connor is a good friend of Bigfoot:
http://tinyurl.com/23r3f

A couple of years ago he was kidnapped and raped by Xena,
the Warrior Princess: http://tinyurl.com/2gjcy

Beavis believes that the MSBlast virus of yesteryear was explicitly
targeting him, for some inexplicable reason: http://tinyurl.com/ifrt

Beavis belongs to a UFO cult: http://tinyurl.com/2hhdx
Beavis's life in a UFO cult: http://tinyurl.com/24jqm
He is a skilled dental surgeon: http://tinyurl.com/3h6a5
Beavis knows all about network security: http://tinyurl.com/5qqb6
And he's also a search engine expert: http://tinyurl.com/9pjnt


So what is he raving about?

In reality, Alan's system is known as a challenge-response or C/R system;
it auto-answers incoming email with a challenge and only lets the email
through if it receives a valid response. There are several problems with
this concept, but Alan doesn't want to hear them. In addition,
Alan's system isn't even a very good implementation of the C/R concept,
as it fails to address the chicken-egg problem that is inherent to C/R:
What if your C/R system sends a challenge to an email address that is
also protected by a C/R system? Because of this, Alan and Timo Salmi,
another C/R advocate, are unable to email eachother. So basically Alan's
system is a broken implementation of a flawed concept.

http://groups.google.com/groups/prof...-MEqh3HQ&hl=en
http://www.pearlgates.net/nanae/kooks/ac/
http://linuxmafia.com/faq/Mail/challenge-response.html
http://www.spamcop.net/fom-serve/cache/329.html#CR
http://www.gatago.com/authors_pgs/13650.html
http://blog.bananasplit.info/?p=84
http://tinyurl.com/23r3f
http://tinyurl.com/ifrt
http://tinyurl.com/2hhdx
http://tinyurl.com/24jqm
http://tinyurl.com/3h6a5
http://tinyurl.com/ys6z4
http://tinyurl.com/5qqb6
http://tinyurl.com/9pjnt

(1) news.admin.net-abuse.email

Also in the headers for "Allan" to read.
  Réponse avec citation
Vieux 28/08/2006, 05h25   #4
Chris F.A. Johnson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Line editing

On 2006-08-28, Salve Håkedal wrote:
> Prompting for input from a script with:
>
> echo "What do you think?"
> read
>
> I start typing, but want to correct, by useing left
> arrow I get:
>
> I hardly thi^[[D
>
> How is that done better?


By using a shell that has an option to allow line editing when
entering text with read.

For example, in bash:

read -ep "Your name: " name

--
Chris F.A. Johnson, author <http://cfaj.freeshell.org>
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
===== My code in this post, if any, assumes the POSIX locale
===== and is released under the GNU General Public Licence
  Réponse avec citation
Vieux 28/08/2006, 06h52   #5
Salve Håkedal
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Line editing

On 2006-08-28, Chris F.A. Johnson <cfajohnson@gmail.com> wrote:
> On 2006-08-28, Salve Håkedal wrote:
>> Prompting for input from a script with:
>>
>> echo "What do you think?"
>> read
>>
>> I start typing, but want to correct, by useing left
>> arrow I get:
>>
>> I hardly thi^[[D
>>
>> How is that done better?

>
> By using a shell that has an option to allow line editing when
> entering text with read.
>
> For example, in bash:
>
> read -ep "Your name: " name
>

Thank you Chris!
(I'll type
$ read
and learn more)
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 03h04.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11219 seconds with 13 queries