From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 26 Jan 2011 18:05:06 +0200 From: Mantas =?utf-8?Q?Mikul=C4=97nas?= To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: <20110126160259.GA5381@snow.home> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Subject: Re: [9fans] p9p 9term problem Topicbox-Message-UUID: a1745c7c-ead6-11e9-9d60-3106f5b1d025 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)