image
image

|


Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #9  
Old September 22nd, 2002, 10:04 PM
Writer, et. al.
 
Join Date: Aug 2002
Location: Boulder, CO
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
d1taylor is on a distinguished road
shell variable shortcuts

The "?" is the C shell way of saying "if the variable isn't defined, return NULL rather than an error." In Bash undefined variables by default are equal to NULL so as long as it was quoted properly, it wouldn't be an error. A neat alternative in Bash, however, is to use a notation like ${TERM:-tty} which says that if TERM is defined, use its value, otherwise use the value 'tty' at this point.
__________________
Author, Learning Unix for Mac OS X (O'Reilly), among other books.
Check out http://books.intuitive.com/
Reply With Quote
  #10  
Old September 23rd, 2002, 07:17 AM
holmBrew's Avatar
Official Volunteer
 
Join Date: May 2001
Location: Utah, USA
Posts: 309
Thanks: 0
Thanked 0 Times in 0 Posts
holmBrew is on a distinguished road
That worked like a charm! Thanks for all the help!

d1taylor - I just may have to buy your book.
__________________
holmBrew

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Great Web Hosting: www.elfon.com
PowerBook(Prismo) 400Mhz G3
266Mhz G3 MT Gossamar
400Mhz G3 Yosemite
800Mhz G4 Quicksilver (my work box)
All running Mac OS X 10.2.4
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Reply With Quote
Reply

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
glib errors when compiling libIDL-0.6.8 kilowatt Software Programming & Web Scripting 3 January 10th, 2005 04:34 PM
Why does DVD2oneX 1.1.1 offer 'variable' ratio? d54321k Design & Media 0 September 16th, 2003 09:22 AM
Shell script to rip form variable names to a file? michaelsanford Bob's Place 2 November 15th, 2002 07:41 PM
troubles installing Perl modules with CPAN.pm yogi Mac OS X System & Mac Software 7 April 26th, 2002 11:38 AM
Errors compiling pthread (for mysql) on Mac OS X Server Someone Else Mac OS X System & Mac Software 0 June 12th, 2001 11:26 AM


All times are GMT -5. The time now is 07:37 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.