LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-11-2009, 07:31 PM   #1
cosmicbrat
LQ Newbie
 
Registered: Feb 2005
Posts: 26

Rep: Reputation: 1
Need help with BASH and DASH


I'm reading about "Bash" and "Dash"..?
In in a Google surf I read that Dash seriously messed-up someones Ubuntu OS...

I have a little red update-arrow on my desktop telling me I have a new update... It's Dash...
Is Dash a good thing, or a bad thing..?
 
Old 03-12-2009, 08:39 PM   #2
lebrun
LQ Newbie
 
Registered: Nov 2005
Location: Venezuela
Distribution: Kubuntu
Posts: 4

Rep: Reputation: 0
Post dash is just another shell

dash is just another shell alternative to bash, like zsh and others. I don't think using it would cause any damage to your system, since in Ubuntu is sort of the default shell when you run scripts with the /bin/sh command (/bin/sh is just a symlink to /bin/dash.)

Since dash is a very lightweight shell, you must specify the bash shell in the script if said script uses any bash feature not available in dash, using a line like this:
Code:
#!/bin/bash
as the first line of your script.
 
  


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
Type en-dash r-t Linux - General 5 04-04-2008 01:57 PM
Dash ignoring PATH? BuilderQ Linux - Software 3 12-18-2007 06:00 PM
dash logout script? Coviti Debian 2 09-24-2007 01:40 PM
What are those double-dash (--) options in man? Utah Linux - Newbie 4 06-04-2004 10:53 PM
Red Hat 8 Dash Character meshcurrent Linux - General 3 02-20-2003 12:51 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration