LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-28-2014, 11:40 AM   #1
lems
Member
 
Registered: May 2004
Distribution: BSD
Posts: 269

Rep: Reputation: 119Reputation: 119
dash from SlackBuilds.org does not know «:»? (colon builtin)


Hello,

I was running a script through mksh, ash, dash and bash.

I noticed this: with dash 0.5.7 from pkgsrc, the following example code does not emit an error:

Code:
#! /usr/bin/env dash

a=1

if [ "$a" = "1" ]; then
        :
else
        echo foo
fi
However, with dash 0.5.6.1 and later 0.5.7 built from SBo (I just changed the version number in the SlackBuild), I get:

Code:
./script: 6: ./script: :: not found
Am I using it wrongly? I didn't see any relevant patches in the pkgsrc version, but maybe I'm missing something? The man page of dash mentions : as a builtin, if I'm not mistaken.

Regards

lems
 
Old 03-29-2014, 05:34 AM   #2
mancha
Member
 
Registered: Aug 2012
Posts: 484

Rep: Reputation: Disabled
Hi. Can't reproduce. The script runs fine here (14.1) using dash 0.5.6.1 and 0.5.7 (built from SBo).

--mancha
 
1 members found this post helpful.
Old 03-29-2014, 09:49 AM   #3
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
Can't reproduce it either. IT runs fine on dash 0.5.6.1 from SBo
 
1 members found this post helpful.
Old 03-29-2014, 12:34 PM   #4
lems
Member
 
Registered: May 2004
Distribution: BSD
Posts: 269

Original Poster
Rep: Reputation: 119Reputation: 119
Thanks, mancha and moisespedro for your answers. I set up a 14.1 install (32 bit) via QEMU and couldn't reproduce it either. Seems to be a problem with my system. (I also tried a new account on my system, but it exhibits the same behaviour.)
 
Old 03-29-2014, 12:41 PM   #5
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
I wonder what could it be
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
openbox on slack13.37 (x86) -- Thanks to linuxquestions.org, slackbuilds.org & many vectrum Linux - Member Desktop Screenshots 5 02-03-2013 12:22 PM
Slackbuilds.org Knightron Slackware 8 02-06-2012 07:44 PM
LXer: Report: OpenOffice.org vs. Go-OO: Community vs. the Suits, With a Dash of Mono LXer Syndicated Linux News 1 01-13-2009 03:13 AM
slackbuilds.org harkonen Slackware 16 08-22-2007 02:01 PM
Use SlackBuilds.org or my own hosting to offer up SlackBuilds? hollywoodb Slackware 6 11-30-2006 08:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration