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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3400 invoked from network); 3 Feb 2021 21:20:04 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 3 Feb 2021 21:20:04 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1612387204; b=Nn9reS7TQeuttBub6fN4JgMcISEaHKfgFjzteTH45PRidYsAZqfTtzlUmlc5iTyFibfxYPeZ5X b6HG2XAsKrx34iGS6QXv9HoyO0M4NTxV3jAzWnYWq5dv81pxL5J51XgvFRakGtj5HkzH7A56ZN DlepZsGmdWcEp7DzNi4P7bCwltybDh2nY/FNW3460o2EF/vlGLS9tOZc1nua7dhKeAZMUrswHX RYSq9QnYIhDj7Qss0no4Y9qHeoirQIWaaOHAGJwQrC9xPGQkCwsgInI0yVHSJR7G0cdt5ZSvm9 bIu1BhhcmSce034dA1ZJxs0gBl/Q0J/tnfKp1tpHIcGtjQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oi1-f181.google.com) smtp.remote-ip=209.85.167.181; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1612387204; bh=MXne8Z0wSpaFVbQZwkwgmGaqmR2Z3zPKYMjppevCkmQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=DXhN8BxDMX0DPhkKivrk/JShpTG1asrOrgpZXmiAJxzvFmhZXvNm//NnQ4O13sgDYpDSPgnk6X WMeFSiVTw6mHBbfDFxMytEKXaJpLeBhq6yQR1uaYvxrebm7+UPyg/WxDLurduRrlGarxPImycR ccrGTZB6EvPlIYGwisfkYJjl7ND/tmXian0XZoViaR1TaMbSb5AuoidE8X9oT4y2fAXTdBp78o gWWodhg/vh0AJGLooIHLqQZ3vuxjJWnPo4zRiJNJ85dGj6p5uaW184okbDo3JP6I61SW2lKsyw 4MuaCuQoW9/gjd4gegJ3LADXqJ+ajz+JykWjePOvJVez9g==; 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:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=FWl9nS6cCUknrlpSEF5EGeitYDb+VyJkuyOZBgcc4Z4=; b=OjGEXQtG0jyn1Vi7BDxCA5XrZi NVsxwhf+aWhHAJ5GFIWhd9cjAROfypPN7fGoDUR1Qs7FmsyADhV9N/T4QQqhZQQf5YjiQPr6oz6gK qilAqSy6wOd1/kcabBnF+YaewlOrV5RT/LKvhCc5BNa9bzWnEOrGXDEJvruTxWH2ba7pC8f1a8tWo OsP368ryrP7LmOx6b2lCjgyZZpyvWEmpuvkMy04bKk/S6yl9Hxq+VrtSh7h9M8pIp8vhaV90vUCKN 8UKGwUZbh+lwISzctYm/T7blk5x/5kKTCLmQhfIkQn3AvdoOHR/YRWc5zYuT9Dwt8Rlq0DCwY+Tbu /GlAfx/g==; Received: from authenticated user by zero.zsh.org with local id 1l7PZD-0009gw-Sa; Wed, 03 Feb 2021 21:20:04 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oi1-f181.google.com) smtp.remote-ip=209.85.167.181; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-oi1-f181.google.com ([209.85.167.181]:32933) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1l7PYf-0009J8-DI; Wed, 03 Feb 2021 21:19:30 +0000 Received: by mail-oi1-f181.google.com with SMTP id j25so1451649oii.0 for ; Wed, 03 Feb 2021 13:19:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FWl9nS6cCUknrlpSEF5EGeitYDb+VyJkuyOZBgcc4Z4=; b=ivxm9F5yv12bCh0YQGR/ZxU9xN82e/ZRk9hqr2WuqreRBAF25gWRrw2nu9UMdzKLxF oQyzAWc5xPGJSNm7+esNriFIXlhM58odPLrpfBz1iZECsoEJxYJkjcFdkZqt1Ofucw4p WjDzcsO8db3VB/TsxvdPlIV/Puj/ux0ueY46mfOopR8SmOVO5IzrFjGeCvXC95kJYi77 rnz8OeiF8fP54tDVT+RX6RVomWSZDpP5Px+j3XqCgjoGoj/odS3OXvNTm0SFXGo0ZAS0 2XvbvpeAixMAGy2YTnlm5xLmeZhzCvaK884ZRG4YAn9wbA25QwWE/+3v8QyU+w/UToMR V6iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FWl9nS6cCUknrlpSEF5EGeitYDb+VyJkuyOZBgcc4Z4=; b=hL3DwiVhTQMR1hZhttx54nmfvr1pzDirx7O+UV6ZKIfGSN23TLvJUf9lO3CNa/fC+l hjD6yOeh2UzIyxjgT5HR7f+w741O2Gc8RSZBoypyscyen9vDuDyEaZn9KC+sgFQBeqzZ Y1PLLTXLOqKlaur8dxZzUbKtnymzmvrPC1ek4ZSjvbftK6Ni4Rk0vUemH9JJVozm6kof EGBCzDeYml610tkCfxe7EfbUX/RGY5ApNMY6NirYCNfxVsJ4dxGYr8r3mHQjf/xRh5uC 8oN8Bcz9acbEYYzSs7taZ7qJ+CwL5rYfFm4Sl6VpWyPrssbWSSo/ehJbh8yNWbmDjq32 gsgg== X-Gm-Message-State: AOAM533GWFqDOm51kXdY2VSqhU/feJ441kIEkwJxf9ZMtxfPD4KSydrj 8OB9PBiW0umhLCRWNrie7ZS/Om3hIuIKSjh9WsCCRQ== X-Google-Smtp-Source: ABdhPJzDbHYQ2nn0QH7msAjM8Zg569YTJQL6R4LocGyD9mi0x7N6Na+/vnmxKE6c8ch7QtszEc9xyE0tjEeIxF7VP14= X-Received: by 2002:aca:72ce:: with SMTP id p197mr3266450oic.173.1612387167860; Wed, 03 Feb 2021 13:19:27 -0800 (PST) MIME-Version: 1.0 References: <52dba8e4-2538-7c96-ecd5-66e017ab2b8e@eastlink.ca> <36596ab3-14b6-da57-e40b-3e66d9ffbb5a@eastlink.ca> In-Reply-To: From: Bart Schaefer Date: Wed, 3 Feb 2021 13:19:13 -0800 Message-ID: Subject: Re: array with newlines preserved as literal text To: Ray Andrews Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 26456 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: Archived-At: On Wed, Feb 3, 2021 at 11:29 AM Ray Andrews wrote: > > Cool. Only thing is that when you pop it out of history it contains the > '_fn2hist' as well as the subsequent command. That doesn't happen to me. Do you have something else also modifying the history? Can you show an example? > Can the function and its tail be saved to > a variable instead of to history? Yes, replace print -rS .... with print -rv REPLY ... or whatever other variable you want (it will be a string, not an array). The phrase "its tail" still leaves me slightly doubtful.