From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 9a2239dd for ; Tue, 10 Dec 2019 01:41:12 +0000 (UTC) Received: (qmail 28946 invoked by alias); 9 Dec 2019 22:08:38 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44998 Received: (qmail 29088 invoked by uid 1010); 9 Dec 2019 22:08:38 -0000 X-Qmail-Scanner-Diagnostics: from mail-pf1-f178.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25656. spamassassin: 3.4.2. Clear:RC:0(209.85.210.178):SA:0(0.0/5.0):. Processed in 2.30763 secs); 09 Dec 2019 22:08:38 -0000 X-Envelope-From: jang@ioctl.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at ioctl.org does not designate permitted sender hosts) 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=NlJohnkvMH1nGRuFB8sP1/j4XA8toeSRMU3lXkv49Eo=; b=gfBtYgD7D8rrQg4LIbGcuqCxRjUmJ+lXfe0B5ycK/ztZL0CQIneoC0AUgcvy2ubNhu x8PpA4iWwJFyBv0hwj5MTPCELOdmiTZroSu94zuk0JPzrYrkdvWf+dckB6BfF0b5+N2a bq81/553fi60hcC4kUz5Sp9ObMLJZDYs8zb7Ot5FvqXc9gQctIP2M7cGMwlDfBEumZiV 9YQlM9s/M7ajeKu77fzHiBjXMTpv2mNvPd702q7ZY8sHhhS1/9lJarRJ5EpOgfv50P6H Mi3NBNOyq3r/TED4Pj9oXYdQl1dgWzHCipp0h84ED37yZ9jvwN9NGrvnBSKfRCgyy/GU yq/Q== X-Gm-Message-State: APjAAAX66SyF59pe0/YVcif0DgWENtgQzwZz9Zn8TuoQMSv6Iz66airu PbGt+X8ObsKsE6H/1hkyn7md66/+bqFT7G+E7UwiTx1i X-Google-Smtp-Source: APXvYqybJZjsZmYcSxHFIq7yapmK9v0e5MobD5pSPcP35WXa7QozPlT0z97OQC5w3xJMmW1Ype1Z9YEuw0MccAhfPzA= X-Received: by 2002:a63:483:: with SMTP id 125mr20825854pge.217.1575929283415; Mon, 09 Dec 2019 14:08:03 -0800 (PST) MIME-Version: 1.0 From: Jan Grant Date: Mon, 9 Dec 2019 22:07:37 +0000 Message-ID: Subject: BUG: small posix glitch in ${x%*} To: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" As I read the spec, the smallest suffix that can match * is the null string; so x=123; echo ${x%*} should output "123". Zsh (as of 5.7.1) drops the last character. (The behaviour for prefixes is correct.)