|
#9
| |||
| |||
| 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/ |
|
#10
| ||||
| ||||
| 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 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= |
![]() |
| Thread Tools | |
|
|
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 |