From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 11 Mar 2020 21:49:19 -0400 From: sl@stanleylieber.com To: 9front@9front.org Subject: Re: [9front] ipso(1) $editor In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: compliant hardware XMPP scripting rails framework extension-aware manager Message-ID: <20200312014919.pAMCELFtxtDeW-_urtba_JR8V8Rr4iczfXeqiTFqHzM@z> > i added the code to ipso to look at the plumbing rules. at that time > there was no $editor. if 9front has a $editor i would suggest you use > it and modify the plumber to respect it too (it it doesn't already). maybe i brought this notion with me from unix, but i was pretty sure at least some plan 9 programs check for $editor in the environment. haha: mars2; cd /sys/src/cmd mars2; grep editor */* abaco/plumbing:editor = acme acme/dat.h: Buffer *elogbuf; /* log of pending editor changes */ dict/movie.c: ED, /* editor */ dict/oed.c: Ed, /* editor's comments (in [...]) */ hg/hgeditor:# If you want to pass your favourite editor some other parameters hg/hgeditor:HGTMP="${TMPDIR-/tmp}/hgeditor.$RANDOM.$RANDOM.$RANDOM.$$" postscript/README: LDFLGS common link editor options - used to build LDFLAGS in the postscript/postscript.mk:# LDFLGS common link editor options - used to build LDFLAGS in the spell/list:coeditor n spell/list:creditor n spell/list:editor n spell/list:editorial n,a,na spell/list:expeditor n mars2; cd /rc/bin mars2; grep editor * ipso:editor = (acme -c1) ipso:edexp=`{grep '^editor=' /mnt/plumb/rules >[2]/dev/null} ipso: editor = sam ipso: Warning: The editor will display the secret contents of ipso:if(~ $edit yes) $editor `{for(i in $files) basename $i} newt:if(~ $#editor 0) newt: editor=hold newt: eval $editor /tmp/post newt: echo editor: $editor mars2; sl