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 13403 invoked from network); 8 Jan 2021 22:02:53 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 8 Jan 2021 22:02:53 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1610143373; b=td++G66bumdsxke8y6fKOAiM+1eqEx1VI8e4t6yinwEZaP5NZenvYLP0bRbRszm+Ul4xxTfzdg LtsvNvWPL8vTMIS9tMy8KMzASBKCINUW8uMaMMvym719pgSubcQnGivl/giUr8WoZAoNw1KdrQ ZBIVLn6PfhG/pRLxHvr2Z6FHgDJ2ziMdvoblui9oeJg6tKy2iitID6w/L8Fp1Lc+FujZUo64yk fbfv2MbKfPCXT4ja59UsnIGXMOhajNH06wd8jkxG11TEZGmQdAsD0LUYIQnrqPZ+j8BkAd3YnG brO8zUELNYZv0liNXwl2cEfhc0fpmMeaMJ1w2Eh3ZWOTSw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail.covisp.net) smtp.remote-ip=65.121.55.42; dmarc=none header.from=covisp.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1610143373; bh=ex5UkG2RUDTJxwN+lcojH7AFWucHiVhX5BQzQpwJPcU=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:To:Date:Message-ID:Subject:Content-Transfer-Encoding: Content-Type:From:DKIM-Signature; b=d7NvVP5BYOTgeSNxoSlKAtzZS+ept5Op4MYKiJX1K9pO52Co0qywRts7NbLY0nOYp5TkOWWYPW 24iyq3S59V4Xbq1fyt2skatf0yTu09IFAQIyRKW65YNNzYRAdF28EDSTgr/5qKvXsp6PezYFhc IyA1/dLqLllT6ZKNTJkBtSc6gVpq8HKjMTi38DSaYDYe/nL5Go1oIQXE0s2ejaxYaMqLHgl0Aq R7ttnHuy3e5zR/xQZti/koyIywvBXOhoPvWXMNPk1TXCBzehLyZmOzthCnkbW6B36uQd2k5z6U yDdQ3FWsKgz/3RBuJTUBRukBzvbSorc9OaIl8BKWQ3d7aw==; 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:To:Date:Message-Id:Subject: Content-Transfer-Encoding:Content-Type:From:Reply-To:Cc:MIME-Version: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=ex5UkG2RUDTJxwN+lcojH7AFWucHiVhX5BQzQpwJPcU=; b=ClYhRRYMMzpKmMBRR6v8ntSnu2 Nc0f9F7zZY2QYw1nMfPAd0VKIFeuBDPM7tC4nQvAtI33bC5TO3j85Jw38III4GII1AVQgMIXnXhjw 6+LZ3leq9AOtAhr0qIaBSFpqd7QWzA2QESUGbeO53GdYnxwkDA9poqAwJUsZKhHiyWgW8O9IVSPlh L/PPTr9VB5fbpVW+igRsjEGvZXorLl6x2UwoUJTvZrAjTYiDTHJ5TT51DCH9mYpQcVvgAeUBOYxhn 5fXSD2Eyixi+0m8qg4lv/eLfbf4kGgkFIJezDJbw8nYV2n4um8syvu4/k1HcmWf0XacBtaACSrxaM wMkegciA==; Received: from authenticated user by zero.zsh.org with local id 1kxzqM-0006Tg-BF; Fri, 08 Jan 2021 22:02:50 +0000 Authentication-Results: zsh.org; iprev=pass (mail.covisp.net) smtp.remote-ip=65.121.55.42; dmarc=none header.from=covisp.net; arc=none Received: from mail.covisp.net ([65.121.55.42]:18240) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1kxzps-00067C-DW; Fri, 08 Jan 2021 22:02:21 +0000 From: Lewis Butler Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Parameter subsitution Message-Id: <6B1D00CF-E282-49D3-8ABE-88AB8EBED62B@covisp.net> Date: Fri, 8 Jan 2021 15:02:17 -0700 To: Zsh Users X-Mailer: Apple Mail (2.3654.40.0.2.32) X-Seq: 26352 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: Reading through the docs: The s/l/r/ substitution works as follows.=20 [. . . ] * A null l uses the previous string either from the previous l or from = the contextual scan string s from =E2=80=98!?s=E2=80=99.=20 And * Note the same record of the last l and r is maintained across all = forms of expansion. Does this mean that l is recorded until the shell terminates or until a = new l is used? Is there a way to see what the current l is set to? $ file=3D"/usr/local/tmp/filename.txt" $ echo ${file:s|e|3} /usr/local/tmp/fil3name.txt $ echo ${file:s||4} /usr/local/tmp/filename.txt Doesn't look like the l is maintained? And where is the !?s syntax defined? Any examples of using !?s in anger? --=20 =C9=B9=D7=9F=CA=87nq=D7=9F tel:+1.303.219.0564