Hi,
When I read someone else's shell script, I find the following sentence,
Would someone tell me what does it mean?
: ${VOLROOT_DIR:=$__VXVM_ROOT_DIR}
Thanks
Kevin
When I read someone else's shell script, I find the following sentence,
Would someone tell me what does it mean?
: ${VOLROOT_DIR:=$__VXVM_ROOT_DIR}
Thanks
Kevin
> When I read someone else's shell script, I find the following sentence,
> Would someone tell me what does it mean?
> : ${VOLROOT_DIR:=$__VXVM_ROOT_DIR}
You'll find this and other useful shortcuts like this in the man page for your shell.
--
Tony Lawrence
SCO/Linux Support Tips, How-To's, Tests and more: http://pcunix.com
> > When I read someone else's shell script, I find the following sentence,
> > Would someone tell me what does it mean?
> > : ${VOLROOT_DIR:=$__VXVM_ROOT_DIR}
> It means that VOLROOT_DIR will be set to $_VXM_ROOT_DIR if VOLROOT_DIR
> isn't already set. But if it already has been set, it won't change.
To set VOLROOT_DIR only if it is unset:
: ${VOLROOT_DIR=$__VXVM_ROOT_DIR}
--Quote:> Oftyen used to set fdefault values that can be overridden at the command
> lne.
> You'll find this and other useful shortcuts like this in the man page for your shell.
On Mon, 23 Sep 2002 05:03:56 +0100, Osama Bin Laden assert()ed:
We finally have something in common. I wish you were dead too.
--
General Protection Fault
10:40am up 12 days, 16:10, 2 users, load average: 0.01, 0.03, 0.00
Linux nitrogen.ertw.com 2.4.9-34 #1 Sat Jun 1 06:32:14 EDT 2002 i586 unknown
4. 1 network on a multi-homed machine...
6. Timezone problems under Ultrix 4.3
10. ##############################
12. Xconfig: truecolor/pseudocolor/staticco