1. Variable 'export' question.
Hi Everyone,
Quick question.... I am just curious to find out what does the
following syntax do? I came across this in a script that I was looking
at:
DATAPATH=${DATAPATH:-.,/api/scripts,/apps/misc}; export DATAPATH
When I do a echo $DATAPATH, the o/p looks like:
.,/api/scripts,/apps/misc
However, next if I do:
DATAPATH=${DATAPATH:-/home/test}; export DATAPATH
the o/p of the echo statement is still the same as above!
Normally, I would do it the following way, since I have been used to
this syntax:
DATAPATH=$DATAPATH:.:/api/scripts:/apps/misc; export DATAPATH
DATAPATH=$DATAPATH:/home/test; export $DATAPATH
the o/p looks like (which is correct & which is what I want):
.:/api/scripts:/apps/misc:/home/test
TIA,
Suhas
2. TCP receive checksum offloading
4. SMB shares with Linspire / WinXP permissions
5. pdisk question: Is changing 'Apple_Free' to 'Apple_UNIX_SVR2' destructive ?
7. tcpdump question: what do 'sap' and 'moprc' packets mean ?
9. Question: '[[ test ]]' vs. '[ test ]'
10. A question about 'ls' and 'cd'
11. X windows question 'root' vs 'user'
12. 'double' or 'dbl' or 'dble', the disk space utilty