Software Development with Linux

The Bash declare statement

WED, 01 APR 2009

Like a lot of professional Linux software developer, I've written a lot of Bash scripts. But still, like many other, I've never took the time to read the Bash MAN page completely, or any books about Bash. So, I still discover new things about Bash every day :)

The Bash "declare" statement is my latest discovery, found at LinuxJournal. It let you declare a variable as being read-only, or as being numerical only.

If I had know that before, a lot of my shell script would have been smaller and cleaner. Maybe I should buy one of those books...!