Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: =?UTF-8?B?UmU6IFdoYXQgZG9lcyDigJxncmVw4oCdIHN0YW5kIGZvcj8=?= Date: Thu, 5 Nov 2015 11:42:41 +1100 Lines: 42 Message-ID: References: <662g3blobme52hfoududj27err185v2npm@4ax.com> <56397a18$0$11094$c3e8da3@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de bWYIQCNSh/YNObTWBcZbCwHt2u/u5PkMi5E2ahMoXcfQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'received:209.85.223': 0.03; 'needed,': 0.05; 'redirected': 0.07; 'cc:addr:python-list': 0.09; 'scripts': 0.09; 'facts': 0.09; 'tasks,': 0.09; 'thu,': 0.15; '...]': 0.16; 'expressions.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'luxuries': 0.16; 'needless': 0.16; 'places.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'two,': 0.16; 'wrote:': 0.16; 'shipped': 0.18; 'typical': 0.18; 'shell': 0.18; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'work,': 0.21; 'friend.': 0.22; 'am,': 0.23; 'unix': 0.24; 'header:In-Reply-To:1': 0.24; 'command': 0.26; 'message-id:@mail.gmail.com': 0.27; 'actual': 0.28; 'regular': 0.29; 'editors': 0.29; "i'm": 0.30; 'connection': 0.30; 'mention': 0.30; "i'd": 0.31; 'another': 0.32; 'included': 0.32; 'screen': 0.32; 'stream': 0.33; 'similar': 0.33; 'editor': 0.34; 'file': 0.34; 'server': 0.34; 'received:google.com': 0.35; 'could': 0.35; 'text': 0.35; 'nov': 0.35; 'widely': 0.35; 'but': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'visual': 0.36; "wasn't": 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'say': 0.37; 'version': 0.38; 'received:209': 0.38; 'christian': 0.38; 'someone': 0.38; 'called': 0.40; 'some': 0.40; 'share': 0.61; 'making': 0.62; 'times': 0.63; 'here': 0.66; 'forward': 0.66; 'day': 0.67; 'skip:\xe2 10': 0.70; 'subjectcharset:utf-8': 0.71; 'special': 0.73; 'obvious': 0.76; 'chrisa': 0.84; 'dumb': 0.84; 'gollwitzer': 0.84; 'to:none': 0.91; 'grew': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type:content-transfer-encoding; bh=dpJH5ZRYkHvMk3jBe58PmNMm6XW0P6sl8fPhwCspWE4=; b=oz9M32bBjz1c34pSC1H+bzqjc2Va2PBrPjwiLJwCGJC6SSDNdjrbBjKucIa1Zx2v9u b1Tjo4csuwj9/J5Ds5psTySz7F8vNk9C5c884v3VylVPKGNJSlis6y/LADJRWgOKzsDz 1rHtT8Sb1hiwm0rwzkhiEb5aFmZ2hbjbL3xbfhO9ifVW+vkDmEJg9SwDB7qU+H0MdFg5 vMaVf6g3PuSeEUgCRF4WGTBkO+q6lYlPqqYtdhbnYyoIKK2HQtUu6P4HPHPh/1sciO3j cQD7RcuWrVzYS2HLK8khEUoIQEwHrC2/49FRZw7P+cCPlOBcOdhVVcZCkSSt2Ah04806 EKtw== X-Received: by 10.107.10.210 with SMTP id 79mr6516485iok.31.1446684161049; Wed, 04 Nov 2015 16:42:41 -0800 (PST) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:98261 On Thu, Nov 5, 2015 at 6:38 AM, Christian Gollwitzer wrot= e: > Am 04.11.15 um 19:24 schrieb Ben Finney: >> >> The name is a mnemonic for a compound command in =E2=80=98ed=E2=80=99 [0= ], a text editor >> that pre-dates extravagant luxuries like =E2=80=9Cpresenting a full scre= en of >> text at one time=E2=80=9D. >> >> [... lots of fun facts ...] > > > Here is another fun fact: The convincing UI of ed was actually so widely > applied, that even Microsoft included a similar editor into MSDOS, called > EDLIN. EDLIN, of course, was a bastardized version of ed that could do mu= ch > less and also lacked regular expressions. Needless to say that the mighty > "VIsual" editor was out 5 years before MSDOS shipped EDLIN as the only > editor... > > In contrast to ed, the stream editor "sed" is used multiple times avery d= ay > in a typical Unix session inside shell scripts to perform automated text > processing tasks, including regex replacement. As someone who grew up on MS-DOS, I'd like to mention that EDLIN's value wasn't in the obvious places. There were two features it had that most other editors didn't: firstly, it would read only as much of the file as it needed, so you could edit a file larger than available memory; and secondly, all commands came from stdin, which could be redirected - making it a poor man's 'sed'. Using EDLIN for regular file editing was never the normal thing. Fast forward a decade or two, and I'm working on a MUD server for a friend. It incorporates an editor that can be used on a dumb telnet connection - and it's line based again. So there's clearly some value here :) Visual editors get the lion's share of actual editing work, but in special circumstances, it is nice to have a quick little ed-like program around. ChrisA