Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe05.iad.POSTED!00000000!not-for-mail From: Owen Jacobson Newsgroups: comp.lang.python Message-ID: <2011122321410754142-angrybaldguy@gmailcom> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: Idiom for shelling out to $EDITOR/$PAGER? User-Agent: Unison/2.1.6 Lines: 26 X-Complaints-To: abuse@UsenetServer.com NNTP-Posting-Date: Sat, 24 Dec 2011 02:41:05 UTC Date: Fri, 23 Dec 2011 21:41:07 -0500 Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:17831 On 2011-12-23 06:02:18 +0000, Cameron Simpson said: > MacOSX has "open", though it won't be running a blocking editor, alas. But it can be. From the man page: -t Causes the file to be opened with the default text editor, as deter- mined via LaunchServices and -W Causes open to wait until the applications it opens (or that were already open) have exited. Use with the -n flag to allow open to function as an appropriate app for the $EDITOR environment variable. and finally -n Open a new instance of the application(s) even if one is already run- ning. can be combined to make 'open' (the shell interface to OS X's LaunchServices system) into a workable $EDITOR. -o