note that there is also E. E (and B) are documented in sam(1) :

  B is a shell-level command that causes an instance of sam [or acme]
  running on the same terminal to load the named files. [...]

  E is a shell-level command that can be used as $EDITOR in a
  Unix environment. It runs B on file and then does not exit
  until file is changed, which is taken as a signal that file
  is done being edited.

Axel.


> Thanks, it works fine! I really needed to open a file from a command
> (it's for cbrowser's Edit call).
> 
> 2006/6/9, Axel Belinfante <[EMAIL PROTECTED]>:
> > the B command also opens a file in acme from the command prompt:
> >
> >          ; B file:10
> >
> >
> > > try this:
> > >
> > >       ; plumb file:10
> > >
> > > or use the 9term plumb menu.  you've got to either run awd manually
> > > for this to work or redefine cd to
> > >
> > >       fn cd { if(flag i)cd $* && awd }
> > >
> > > better yet, run win(1) within acme and use b3 on the file:line combinatio
> n.
> > >
> > > - erik
> > >
> > > On Fri Jun  9 04:13:15 CDT 2006, [EMAIL PROTECTED] wrote:
> > > > Hi... I'd like to open a file in acme at line, let's say, 10.
> > > >
> > > > acme file:10  # doesn't work
> > > >
> > > > if I already started acme, I tried this way:
> > > >
> > > > (echo name file; echo get; echo dot=10) | 9p write acme/new/ctl
> > > >
> > > > But it doesn't work - it says the "dot=" command is ill-formed. What I
> > > > am doing wrong?
> > > >
> > > > Thanks,
> > > > Llu?s.
> >

Reply via email to