From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15553 invoked from network); 8 Jun 2021 19:49:29 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 8 Jun 2021 19:49:29 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1623181769; b=X6uQyCA5YvLjJ+EQH9G7nj5MCMFbq6KpTBNWgjPC3N90ng8J97tsKHIGZ+o34tztu+2XqJ/j3y hm/mJHPHcjd9R4kgrbOdo6nm99XSUh2q0DIXkKc2zPgFwq78OIRCyf2NymID9VTRR5yszirH4b vfnDFda2wVx7Lin6/xJZrx6NFaZrNGuF+nL24pm4bwui7w4nYiQ9BVx+JvAieYEq4V4v60CXBr Fqcd3D5P0KJOwQeLsqCSf7GnRJsTXkRCno12X1cTqudDQWDK1QB20JU1OHUU60zevoxx3bLIby y/90DX5O7st1IXc8jPG2GgD5CrlTOhKyGRlUjhEmkISvQQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f169.google.com) smtp.remote-ip=209.85.208.169; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1623181769; bh=zRm/mvG55CIbDsH4RBEtqLetMMHWZqENsIqp4g+Gy1A=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature:DKIM-Signature; b=Qcr/eqWgfdqHHuPUfWo/Zm2upZS0Vpf1GmR3Zo9TfTPQl1iH4OyVt3cwWMv3tOdvfgAX/+hWTR CxBISZZ0+dZCku+A8V1ytvyicbBvfgySWac62uDcTzQrShkZddlb8Pqy0Re+Re8V9HBR1Bl1mQ I0TPpqgJyEHPdoYwA9mdX+bmDe81+D5+K3MNsJeXF5Oji5lScbZ3+m7pQ8v6KT6FQAWDWVgpNn MFPe0IRwqfetkuOZIt1EdvdMOseUW890srth+6QhpmUkC23kJgElvyrg23aZ9nj4MIb9O4qfMi XTzyMVGTNbhd0XovCGIZ6OzNauig6R+TQImStM/WIcMdwQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:MIME-Version:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=zRm/mvG55CIbDsH4RBEtqLetMMHWZqENsIqp4g+Gy1A=; b=DR8FwlIbTRjcDxQp+jPReAcQR1 KU0oSrvzJ6z/NCaGnDQMbo2aMSgGw47Y2m1LhU3lifUPFhbStiP86nx/UhDM80fonMrqnREVR5mYE DqhQLp4W6gXxcEbo8+mW41HuBhG26o+eaY7AVYQM6rX5Mj1yj4ovyhquyNSSbLI25b4Cuu3oA0IDo yXqgSPXrC8E1rubW89VsSAoDK9QwT7g5MuJwmnqeWvynP4ANBn9x57YvtdggZYmidr9CGdsnDl2ci 3fFOEj27of+MHwvHaqA++kEhcc8qiMhiAMSEDl9dtZIbeeMvyKpA6Qr6M2SS4zlBPalmH6OePoola ZvNrl0kA==; Received: from authenticated user by zero.zsh.org with local id 1lqhj5-000LZl-Br; Tue, 08 Jun 2021 19:49:27 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f169.google.com) smtp.remote-ip=209.85.208.169; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lj1-f169.google.com ([209.85.208.169]:35539) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lqhi9-000Kqd-6o; Tue, 08 Jun 2021 19:48:30 +0000 Received: by mail-lj1-f169.google.com with SMTP id n17so11462486ljg.2 for ; Tue, 08 Jun 2021 12:48:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=zRm/mvG55CIbDsH4RBEtqLetMMHWZqENsIqp4g+Gy1A=; b=D5mDQ1Gf42Dpm5JLdV887oPUBZ0uEfrRjB41evX3t6qsXXNR1DxwuWvHRRRsuU5a9a yjNIQX8ARksQuVnCXXqeCyfGhfs/fAYrx7uhPyFrX03FHRrnKSfxuw/fuubtXBOJwzGY VZdXFgPhg3xoSyE0AvJ97gZsay9M4OE+4HFO1lQvSPaEqV8ceJonc4O0f6dw8rBwg8rL YSK9vWqNoRAldjGA2bp84c8HVz2OCnN1XiA+Mc+qoHbXXnQ8k/JOIyxwjNT7XNbAbyP1 XDgSeNdItVqbYN3ZCP94+tjTdajpbHG3hZVqu+HrNfAykVjyGfk/BJ8pER+H/GLKZN+c KHVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=zRm/mvG55CIbDsH4RBEtqLetMMHWZqENsIqp4g+Gy1A=; b=MGerBQcZdjpGkfdSp72ybgPPp5zJnUykkG3MmX/DtzpKWmW3rgdfd1fgAfPyzwStG8 4OblhhvQuhnMdhI+vV3S76R/vZ0daz7T7RuAiTR1yCg36A92oltfT+8tq8egjpTlEJ+R OD9LJCgqJ9Os8Sj8PSsNM4sVT2zFMdn2GliKw5evAzHafiyvU/fUKne6fLeWABbrps6X yoIi7NnEpiH2y+GWqp/DPPXN6/tANBqCsd3QNakJcUX3vWdugjOHNIkb8QnRGsTS3gmA 7uEj/qH67QDeQ3TORr+RaMRrz4h2uFjuOS7fNzi6z7edf0fdJVNDu444mGT9os9RpePW VIEg== X-Gm-Message-State: AOAM530wHWInY2P2egQvF4Lp+5uAUGrBMHWK66p+DC9sCMcPbUSQQ2eh Jrho0+YQjRcGN0M8V5SbixQnfUNNWnsUQ8QBdjFkWD+fM9c3 X-Google-Smtp-Source: ABdhPJxugvT7+XDgpCy3RqEzm5RMmsiGwKHf7QCcwGnidLF7KMdsVza2e9J6gI/m8BULwF4VsPiDg37QWBNdm7PAkIU= X-Received: by 2002:a05:651c:1077:: with SMTP id y23mr20104750ljm.427.1623181708185; Tue, 08 Jun 2021 12:48:28 -0700 (PDT) MIME-Version: 1.0 From: Jonathan Ching Date: Tue, 8 Jun 2021 12:48:17 -0700 Message-ID: Subject: Unterminated command truncates history file To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary="0000000000001f546805c44671b5" X-Seq: 26764 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: --0000000000001f546805c44671b5 Content-Type: text/plain; charset="UTF-8" Hello, I have been searching for a way to resolve an issue in which issuing a SIGINT via Ctrl-C to a "dquote> " prompt after an unterminated command results in the history file being truncated, removing all but the first line of the history file. For example, following the command echo "Hello with a Ctrl-C at the "dquote> " prompt will cause the history file to be truncated. For context, I have the options "incappendhistory" and "extendedhistory" set Is there a way to avoid this behavior? --0000000000001f546805c44671b5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I have been searching for a way = to resolve an issue in which issuing a SIGINT via Ctrl-C to a "dquote&= gt; " prompt after an unterminated command results in the history file= being truncated, removing all but the first line of the history file.

For example, following the command
echo "Hell= o
with a Ctrl-C at the "dquote> " prompt wil= l cause the history file to be truncated.

For cont= ext, I have the options "incappendhistory" and "extendedhist= ory" set

Is there a way to avoid this behavio= r?
--0000000000001f546805c44671b5--