Advertisement

04.19.2007 at 06:23PM PDT, ID: 22522962
[x]
Attachment Details

bash script syntax

Asked by bryanlloydharris in Linux Administration

Tags: bash, syntax, script

What does the following syntax mean in a bash script?  I think the result is to set the variable, but why not just use a normal equal sign to set the variable?  What is the significance of the syntax?

OUTPUT=${OUTPUT:-/usr/packages}

Does it mean one or the other?Start Free Trial
[+][-]04.19.2007 at 06:41PM PDT, ID: 18943640

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Linux Administration
Tags: bash, syntax, script
Sign Up Now!
Solution Provided By: Tintin
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.22.2007 at 01:00PM PDT, ID: 18955033

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32