LinuxQuestions.org
Register a domain and help support LQ
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: Slackware x86/x86_64/ARM & NetBSD
Posts: 197

Rep: Reputation: 84
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: 417

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,218

Rep: Reputation: 172Reputation: 172
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: Slackware x86/x86_64/ARM & NetBSD
Posts: 197

Original Poster
Rep: Reputation: 84
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,218

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 04:44 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration