Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75957 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39991 invoked from network); 23 Jul 2014 13:09:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jul 2014 13:09:03 -0000 Authentication-Results: pb1.pair.com header.from=saprykin.dmitry@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=saprykin.dmitry@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.44 as permitted sender) X-PHP-List-Original-Sender: saprykin.dmitry@gmail.com X-Host-Fingerprint: 209.85.213.44 mail-yh0-f44.google.com Received: from [209.85.213.44] ([209.85.213.44:35591] helo=mail-yh0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/CB-21666-EE3BFC35 for ; Wed, 23 Jul 2014 09:09:03 -0400 Received: by mail-yh0-f44.google.com with SMTP id f73so751168yha.31 for ; Wed, 23 Jul 2014 06:09:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=YlaRsZmTrCpI+24Kxze5jz4A0QY8CZgDNkolIqSURM8=; b=xE0E4MADlLedLWQcZ4UsFkPTqlkq65sCdDIRPggyUJSlrOdPuAfpsVK/bbHK5FQiSv SXzexQxlhhU9U8D3WCAtQhuI1+GUEv1Yb8Aq2G+lYz5WW5k2KDfR081WGgiatEWYHJYn bzjndDnlZngtxF+k4RVv6kiF1uD79YhbtgvBUeeCFnzKJLnwWGbUzzByhuWYCImUzyHb zc82ztMdQG0rnXvOS7q5kj2RpEKbYuVbX29p2TJQXVab2GRl7UjT11TI/WdIcum+Qcw+ mixiba7ofLa6KoORktvlhrWM5eAm0bbVmV1K+gpzKek6wW27To36tgJfxLX+GetuUE5D zXKQ== X-Received: by 10.236.26.172 with SMTP id c32mr1390938yha.145.1406120942344; Wed, 23 Jul 2014 06:09:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.170.191.67 with HTTP; Wed, 23 Jul 2014 06:08:42 -0700 (PDT) In-Reply-To: <1406119104.3964.126.camel@guybrush> References: <1405951255.3964.76.camel@guybrush> <1406119104.3964.126.camel@guybrush> Date: Wed, 23 Jul 2014 17:08:42 +0400 Message-ID: To: =?UTF-8?Q?Johannes_Schl=C3=BCter?= Cc: PHP Internals Content-Type: multipart/alternative; boundary=047d7b67697c479f2a04fedc0b44 Subject: Re: [PHP-DEV] php interactive shell: save history on SIGINT exit From: saprykin.dmitry@gmail.com (Dmitry Saprykin) --047d7b67697c479f2a04fedc0b44 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Yes, you are right. append_history is not suitable for libedit. I left write_history call for libedit. On 23 July 2014 16:38, Johannes Schl=C3=BCter wrot= e: > On Mon, 2014-07-21 at 18:17 +0400, Dmitry Saprykin wrote: > > changed "write_history" at the end to "append_history" after > > each cli_is_valid_code. > > Now it is -1 line, +1 line commit and completely looks like bug fix. ) > > Have you tested with libedit? - A quick grep on my system shows no > append_history() call, haven't checked further, though. > > johannes > > > --047d7b67697c479f2a04fedc0b44--