๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #160063

Re: [OT] UNIX shell command-line editing (was: [OT] Best News Reader)

#160063
From: Tim Hammerquist
Date: Sun, 02 Jan 2005 19:44
23 lines
2594 bytes
Frank Slootweg <this@ddress.is.invalid> wrote:
>  ยปQยซ <boxcars@gmx.net> wrote:
> > In a Bourne shell, ctrl+W also deletes the preceding word.
>  
> Huh? The Bourne shell did not have any command-line editing
> facilities. Perhaps you were thinking of the C-shell or Korn shell.

It's also likely they were thinking of bash.  However, all currently
available (on my network, IAC) versions of sh do implement the ^W
functionality described above.  Both the GNU sh (`ln -s bash sh`, which
is alleged to run in an sh-compatibility mode when invoked this way),
the GNU sh (`ln bash sh`) and the BSD public domain sh delete one word
back with the ^W chord.

However, this most likely changed since the version of sh that you last
used, as I recall using some versions of csh and sh that had trouble
implementing a simple backspace (^H).  The "sh compatibility" is most
likely limited to the syntax for scripting uses, the end result being
an "sh" binary that interactively behaves like bash but is missing some
advanced scripting features enabled in bash.

Just thinking out loud, really,
Tim Hammerquist
Technical Details
Message-ID: <slrnctgj66.638.tim@vegeta.saiyix>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!peer01.cox.net!cox.net!bigfeed.bellsouth.net!news.bellsouth.net!hwmnpeer01.lga!hwmedia!hw-poster!fe05.lga.POSTED!53ab2750!not-for-mail
References: <41d63789$0$31701$a1866201@visi.com> <5cs5vjq87l0j.dlg@betty.invalid> <Xns95D17763BB13Djbn10161@140.99.99.138> <svug0gkma8ih.dlg@betty.invalid> <MrQ95D1DF783AE31itsmeitsQ@QsFQDN.dyndns.org> <41d829a5$0$35004$b83b6cc0@news.wanadoo.nl>

Show Full Headers
Complete Article Headers
Message-ID: <slrnctgj66.638.tim@vegeta.saiyix>
Subject: Re: [OT] UNIX shell command-line editing (was: [OT] Best News Reader)
Date: Sun, 02 Jan 2005 19:44:20 GMT
From: Tim Hammerquist <tim@vegeta.ath.cx>
References: <41d63789$0$31701$a1866201@visi.com> <5cs5vjq87l0j.dlg@betty.invalid> <Xns95D17763BB13Djbn10161@140.99.99.138> <svug0gkma8ih.dlg@betty.invalid> <MrQ95D1DF783AE31itsmeitsQ@QsFQDN.dyndns.org> <41d829a5$0$35004$b83b6cc0@news.wanadoo.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!peer01.cox.net!cox.net!bigfeed.bellsouth.net!news.bellsouth.net!hwmnpeer01.lga!hwmedia!hw-poster!fe05.lga.POSTED!53ab2750!not-for-mail
Newsgroups: news.software.readers
Organization: little to none
Reply-To: tim@vegeta.ath.cx
Mail-Copies-To: nobody
X-Editor: Vim-603 http://www.vim.org/
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: slrn/0.9.7.4 (OpenBSD)
Lines: 23
X-Trace: nghlfjfcphhogbndgnimafgeclpmfjhipgkmelbploidihiifjiepkjohhigonlgpgkmepeindeenfkfgjiecganjgiblmifppopongcgieglollnllnoajoggonckjeegcmjhhibopfakdb
NNTP-Posting-Date: Sun, 02 Jan 2005 12:44:20 MST