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,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18437 invoked from network); 8 Aug 2021 05:59:39 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 8 Aug 2021 05:59:39 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1628402379; b=mhpCdk/I8eQmm6NZSRm7VgK61MwEt3iMJ+PV10ro9xxTTyaEDfrI1qB/+MJaYUTnfLARnEUqwP 4d5Wfgmuhj/eSjql/itE2hqvFDAry7VL3kFzD2eK4nsgU0P6DU2ZfAifxK9O3BYPC/wqNKMnBt URwTao3sLMPCAMQa5hJ1gZTC56OxaZ6SUSjNl5N0gETD7CwzqzrhYYTMP0wDKvyF1MwqAoe0BS oC7GMSmJWwCzh4duHhOHbn3eMMt9OE/J1ZlhEPTPVqZmu294IVTHRG2nOwBzVG1pwW+Nm+5Ujx WdtJvdfyE0tlk92x7PogVO1qf4sD7q5JgqzipzFLshC7oA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ua1-f50.google.com) smtp.remote-ip=209.85.222.50; 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-20210803; t=1628402379; bh=D3Mn5u/PRU0FQo4DuekZDiEBBGj81tdMpuQcBxbP/bc=; 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:References: In-Reply-To:MIME-Version:DKIM-Signature:DKIM-Signature; b=Ihdic/tFMW2+QyvxZUij5+oDKHOPTcNBnxnPl83bnXvOgNftZfSymGxkwkTyq0KplmE/ib8qVs bXosucTmI+FNVYe9OparvyaGdLxXxgBaGIsmAniauNn7VptYfwXmDfAwBKGWKmALPy8cEmxLhU DGKsxdOxXYWvS7YSUTtMbNhx3CpRL6itf74pOTUWyiGAIR7A4vrIiTRGorAIQtJCsT0ORi8s7k eRaLOeI0y3vwsZQ1NChfltz7z8XiyjS0smp8tvlpPNzJr+XHoLArBKFLeT+wc6g4OiqcRmfHFS A6UoSySXXB9/7NG9lHNszj3jCbDyHAIwK6oDLuoIIJpHCQ==; 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:Cc:To:Subject:Message-ID :Date:From:References:In-Reply-To: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=F9WaBtiR5L6KoZQ9Kc7rOAJDlYumh9fU5oIp/OiKjFc=; b=ESQ6m4J2mhLd8mXQ6liJ9jCcmJ nmVEJfUB4ZqEzZMNznsrp3LwbXbGQQdqd6aS3eNGdPhhRv4UxYsLhn9Fy2ov9cihxY0Ev+1LZzEex arLzs+pcBsdCRxTsUQAqoC9e8jS3mE6nwfWLS8/S2PDsGfstGfpqokIFtzGl0+tb4EvgyirIBeVDF R8Q8invDiV99/ClbcgX2ouywMzvHU3O5Me03hldtt939/I6Fggb6EHBqMTo5UYWVA5MHYGH/GMhxL Px7R9APXCSlb+hAuOxYG/RqwwVNRpe7CRx6P/8AuT/bfM1ZnpKNfcSpmKNDVkPhm5TpsBXLVJeCLC Jilf+zgw==; Received: from authenticated user by zero.zsh.org with local id 1mCbqV-000L8x-3U; Sun, 08 Aug 2021 05:59:39 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ua1-f50.google.com) smtp.remote-ip=209.85.222.50; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-ua1-f50.google.com ([209.85.222.50]:38884) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mCbqD-000Kpa-RV; Sun, 08 Aug 2021 05:59:22 +0000 Received: by mail-ua1-f50.google.com with SMTP id c25so1442475uaq.5 for ; Sat, 07 Aug 2021 22:59:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=F9WaBtiR5L6KoZQ9Kc7rOAJDlYumh9fU5oIp/OiKjFc=; b=dBgE18m5OdEBfR/By3IePL6iixbXDb7jCzK+yy+9btSDhtymA6GiuofbUZ/P+a2CCb pj/nBKXeCs5q9pDIlw2vmxJtMd5kYiKwqErF+BMo2I4REskYZKhwRN+JCC/zUQ7OXiOs sJ1PvpaBRbwST8dzRYKou6Qrs8H63bKc3AM2lKaqijx618Pl/aTenyBlQjTM0F8UHtve AgD8PAbaAYS5jHYElxrcdmFzYuksVeiqfEIfqowHzqbw2TszvKQVNjAsRILJMeEcHz1u O5NqAjpHRycIQB9Fe3wl0N/JGsfRpmIKtXGq1lqHnkOxK2BQtyqD0C/F4PG+KXXbqyHG 41pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=F9WaBtiR5L6KoZQ9Kc7rOAJDlYumh9fU5oIp/OiKjFc=; b=T7tgbtWXGEv8BdC8JClS5UBL+gZTgHGzJu5wVy0a0l9NAdOEGigQLQ251KN6KhlGS4 11gaBbp9Aq/sCr5lP9eWWIrBW9UOFkfYM93L4GCib/YIuqvE9CJAZzz1V4e1suzkTNhL tnLzcHX+IatE5Vc7nwjcKPmPjCrNhBGnCtL2DB2jsy9TAOyQmCGhDNJ7/Cp2X6sMfLRu G35SDT+yC8mbWntnrNNcKEVeZ5XZUmppQpJuf3UoOZUmLByTbZszpkExtEvz1Eslrh5q K2e0/Gc9/lV5+0nEnuk62QWhhVZ542lBl6U0pGrSMZziyD++yGL6rdEjZU1Tcn79prah 5gwA== X-Gm-Message-State: AOAM532JEjIf94bqyNVKfnjCt+gSrpZPgkJgVDAAd+wAxBwr0XNmot1K GS/V1B3Ph25EhNIvWvMN3MglL5fthwmq5XoeT64= X-Google-Smtp-Source: ABdhPJyxAA12tFt7VMNEgKq4r9iccfA2Sh0tCbQMjwL++3IvkTld8C5oC5byn2fgg9RV/gBjo7JaMmPhs5eS8JjvCdM= X-Received: by 2002:ab0:780c:: with SMTP id x12mr12566066uaq.117.1628402360767; Sat, 07 Aug 2021 22:59:20 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:1508:0:0:0:0:0 with HTTP; Sat, 7 Aug 2021 22:59:20 -0700 (PDT) In-Reply-To: References: From: Mikael Magnusson Date: Sun, 8 Aug 2021 07:59:20 +0200 Message-ID: Subject: Re: read -r flag not working on 5.8.1 To: David Milum Cc: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" X-Seq: 49261 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On 8/8/21, David Milum wrote: > Disregard, and apologies for the noise. I understand now -r is not the same > as in bash. Should have clued me in when it didn't work on my mac. > > On Sun, Aug 8, 2021 at 1:38 AM David Milum > wrote: > >> Hello, seems like the -r (raw mode) flag which should prevent it from >> interpreting backslashes is not working? My understanding is the >> following >> example shouldn't clear the "CLEAR" part. I can also demonstrate with new >> lines. >> >> $ read -r TEST >> asd\c CLEAR >> $ echo $TEST >> asd >> $ zsh --version >> zsh 5.8 (x86_64-pc-linux-gnu) Your problem is not read, but echo. Try the above with echo -E $TEST instead and you will see the read command is fine. -- Mikael Magnusson