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,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 552 invoked from network); 12 Aug 2021 00:38:35 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 Aug 2021 00:38:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Subject:Cc:To:From:Date: References:In-Reply-To:Message-Id: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=iMsfnEOrpu0UQyDH/ySBdDPA5mdVFGVFbQdpNt/qYoc=; b=RKhD4Gz2K8I3bPeE6JVL9/MQT1 kNZ5fvjPqyvLCv0bdLVgPPA+GCe57xwD56YC9ZsjMAIxUvaN5+VzvmNf7aiK9xevE0UZjVNjpottT e0yMHwI6xrtiHN/EHRK+g5bFk3Bn4fh6e1L9liIiUii42bDQ0uxWu79+iEmrUAvVgr/iNYTBdIPvR QO4nvPkFAz/MMprX8tnrLJKlnscMpLCME9WtoJONDzBkpQqftihevQLwEDX/ZL6WhosL737AWkwyz YTt8jZ1NFYtlNHXdIkCbvWTJyBaNW2OToeST/qJjio9MDFn7uWRMer7wdAMNHLIyR65TpJiLyhxk+ Pl1+EGSw==; Received: from authenticated user by zero.zsh.org with local id 1mDyjz-000Ksg-7E; Thu, 12 Aug 2021 00:38:35 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mDyjJ-000K9S-4i; Thu, 12 Aug 2021 00:37:53 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id CC5F527C0054; Wed, 11 Aug 2021 20:37:51 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute3.internal (MEProxy); Wed, 11 Aug 2021 20:37:51 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrkedvgdefhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderreejnecuhfhrohhmpefnrgifrhgv nhgtvggpgggvlhojiihquhgviicuoehlrghrrhihvhesiihshhdrohhrgheqnecuggftrf grthhtvghrnhepkefhheevudehkeekjeefgeefieejffefvdetleduieffheethfetveeh keduuddtnecuffhomhgrihhnpehophgvnhhgrhhouhhprdhorhhgpdgsrghshhdqhhgrtg hkvghrshdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpehlrghrrhihvhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqud duhedukeejjedtgedqudduledvjeefkeehqdhlrghrrhihvheppeiishhhrdhorhhgsehf rghsthhmrghilhdrtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 41B94A03D5D; Wed, 11 Aug 2021 20:37:51 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-554-g53a5f93b7d-fm-20210809.002-g53a5f93b Mime-Version: 1.0 Message-Id: <185cb06d-c7fb-4104-9301-48be63e6b789@www.fastmail.com> In-Reply-To: References: <27bc215c-3916-4afe-b8b3-7946dd0cb4bc@www.fastmail.com> Date: Wed, 11 Aug 2021 20:36:58 -0400 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Zach Riggle" Cc: "Bart Schaefer" , zsh-users@zsh.org Subject: =?UTF-8?Q?Re:_Odd_behavior_with_various_(q)_array_modifiers_and_non-prin?= =?UTF-8?Q?table_characters_(backspace,_newline)?= Content-Type: text/plain X-Seq: 26925 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: On Wed, Aug 11, 2021, at 7:25 PM, Zach Riggle wrote: > TLDR 1: I learned/realized that zsh builtin echo automatically > interprets escape codes, unlike bash echo and /bin/echo. But like the builtins of dash and yash. % zsh -c 'echo "a\nb"' a b % bash -c 'echo "a\nb"' a\nb % ksh -c 'echo "a\nb"' a\nb % dash -c 'echo "a\nb"' a b % yash -c 'echo "a\nb"' a b The echo(1) utility is notoriously unportable [1][2], and it's worth considering avoiding it completely. [1]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html#tag_20_37_16 [2]: https://wiki.bash-hackers.org/commands/builtin/echo#portability_considerations -- vq