dash.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ':' noop results in ':: not found'
@ 2016-10-28 10:54 Tim Ruehsen
  2016-10-28 11:22 ` Harald van Dijk
  0 siblings, 1 reply; 3+ messages in thread
From: Tim Ruehsen @ 2016-10-28 10:54 UTC (permalink / raw)
  To: dash

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

Hi,

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 $?
127

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

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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-10-28 13:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-28 10:54 ':' noop results in ':: not found' Tim Ruehsen
2016-10-28 11:22 ` Harald van Dijk
2016-10-28 13:08   ` Tim Ruehsen

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