dash.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Vladimir N. Oleynik" <dzo@simtreas.ru>
To: dash@vger.kernel.org
Subject: ${#a#a} bug?
Date: Tue, 2 Feb 2021 11:55:19 +0400	[thread overview]
Message-ID: <7d15a038-2dc1-ae08-3091-97e3d356fdc3@simtreas.ru> (raw)

Hello.

$ a=abc
$ echo ${#a#a}

dash-0.5.11.3 produce:
3a
bash:
${#a#a}: bad substitution


Also, found incompatibility vs bash, may be is not bug:
for ${#*} bash eq $#, dash - s="$*" ${#s} :)


--w
vodz

             reply	other threads:[~2021-02-02  7:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-02  7:55 Vladimir N. Oleynik [this message]
2021-02-10  9:31 ` ${#a#a} bug? Vladimir N. Oleynik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7d15a038-2dc1-ae08-3091-97e3d356fdc3@simtreas.ru \
    --to=dzo@simtreas.ru \
    --cc=dash@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).