9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Mantas Mikulėnas" <grawity@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] p9p 9term problem
Date: Wed, 26 Jan 2011 18:05:06 +0200	[thread overview]
Message-ID: <20110126160259.GA5381@snow.home> (raw)
In-Reply-To: <AANLkTik_Bq84XNFfSnUoVzz=MvhHvwMW4LGULe-MsmTe@mail.gmail.com>

On Wed, 26 Jan 2011 13:21:10 +0100, Rudolf Sykora wrote:
> in linux I often start programs from a terminal running bash like
> this
> ; (program &)
> which somehow achieves to run the program in the background and the
> program further survives the terminal's end.

It's called "double-fork", AFAIK.

You can also use `disown` (as in `program & disown`) to achieve the same thing.

> When I write the command I often forget to write the opening '('. So,
> in 9term, I click at the line beginning, add the '(', click at the
> line end, hit enter. And I see:
>
> bash: syntax error near unexpected token `)'
>
> although the line looks correct --- when I highlight it and 'send',
> it works.

bash/readline does not know what you click on -- it still thinks you are typing at the end of line.

Enabling cooked mode (middle-click -> 'cook', probably along with `stty -echo`) can help -- it makes 9term only send an entire line at once -- but it may create some other problems.

--
Mantas Mikulėnas (0xD24F6CB2C1B52632)



  reply	other threads:[~2011-01-26 16:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-26 12:21 Rudolf Sykora
2011-01-26 16:05 ` Mantas Mikulėnas [this message]
2011-01-26 21:12   ` Rudolf Sykora
2011-01-27  1:37   ` Russ Cox
2011-01-27  7:48     ` smiley
2011-01-27 16:21       ` Russ Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110126160259.GA5381@snow.home \
    --to=grawity@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).