dash.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tim Ruehsen <tim.ruehsen@gmx.de>
To: dash@vger.kernel.org
Subject: ':' noop results in ':: not found'
Date: Fri, 28 Oct 2016 12:54:55 +0200	[thread overview]
Message-ID: <56849947.Cgj98o2q7x@blitz-lx> (raw)

[-- Attachment #1: Type: text/plain, Size: 807 bytes --]


maybe you can enlighten me :-)

I try to use dash (0.5.8-2.3) on Debian unstable for executing ./configure 
scripts. Since Debian builds with --disable-lineno, all ./configure scripts 
silently fall back to bash (I created bug report #842242 to get this fixed).

Next I rebuilt the package from the (Debian) sources without --disable-lineno 
and installed it. Now I see error messages from dash when it comes to the do 
nothing operator :.

$ dash -c 'test -n "a" && :'
dash: 1: :: not found
$ echo $?

$ bash -c 'test -n "a" && :'
$ echo $?

Since this : construct is wildly used and I know that dash on other systems 
work with it, I wonder what is wrong here.

Is there a known bug, maybe fixed on recent dash versions ?
Or has this some simple reason my stupidity doesn't see ?

Regards, Tim

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

             reply	other threads:[~2016-10-28 11:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-28 10:54 Tim Ruehsen [this message]
2016-10-28 11:22 ` Harald van Dijk
2016-10-28 13:08   ` Tim Ruehsen

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:

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

  git send-email \
    --in-reply-to=56849947.Cgj98o2q7x@blitz-lx \
    --to=tim.ruehsen@gmx.de \
    --cc=dash@vger.kernel.org \
    --subject='Re: '\'':'\'' noop results in '\'':: not found'\''' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).