On 2016-05-13 06:30, Mark Lamourine wrote:
> I use Bash, but I have come to do something I don't see elsewhere much.
> 
> I make a lot of use of functions and local variables.  Basically any time I
> see a coherent string of commands whether it's a pipe or a set of logical
> checks, I name the operation and put it in a function.  String values are
> 'returned' as echo/cat output and logical values are just returned normally.

I honestly didn't know about local variables in bash until
Adam Moskowitz mentioned it in a private email. I will make sure to use them
from now on!

Once you've used any other prog language, bash seems to be inside out
(variable global by default, ignoring all errors by default, etc...)

-- 
http://yves.zioup.com
gpg: 4096R/32B0F416

_______________________________________________
Tech mailing list
Tech@lists.lopsa.org
https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
 http://lopsa.org/

Reply via email to