unix shell variables

fallback-no-image-3469
unix shell variables

unix relies heavily on strings. when a variable is declared it is usually assumed to be a string. there is separate notation for declaring numbers and arrays. if a string is operated on as a number, it will be automatically converted to a number so that the operation may be done. this is because shell uses weak typing. unlike other languages, shell variables declared in a script remain after the script completes. to prevent this, type:

Website Link Visit Link Here
Category
Author: CodeCall Programming Forum
Comments

ToolBox
  • November 12, 2009 12:15 pm
  • Related Tutorials

    Subscribe to get this amazing EBOOK FREE

    Loading

    By subscribing to this newsletter you agree to our Privacy Policy

    Skip to content