|
|
shell programming tip
For reasons discussed in previous hints and elsewhere on the net, sh (or bash and zsh, on OS X) is a preferable language choice to csh (or tcsh, on OS X) for shell script programming. It's common sage advice for the benefit of anyone who's more seriously interested in writing shell scripts. At times I think it deserves a hint of its own. :-)
shell programming tip
In addition, be wary of putting sensitive information, such as a password, into an environment variable. While the script is running, the variable can be read by another user if the correct ps option is used.
And if you have to put the password into the script, please make sure the appropriate read permissions are set so it cannot be read by unintended eyes. ---
shell programming tip
The adage of not using (t)csh for scripting is based on a personal choice. The author of the csh_whynot.html page makes his assertions on personal preference and uses a few obscure references where csh takes longer than bash or sh. Typically, csh and tcsh are easier since they work more like C for those of you who program. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:Hints1 new Hints in the last 24 hoursComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|