bash Script Variable Assignment Problem

Status
You're currently viewing only ronelson's posts. Click here to go back to viewing the entire thread.
Not open for further replies.

ronelson

Ars Legatus Legionis
21,399
Subscriptor
I definitely like your indentation better, but I'm just using single tabs with nano 2.0.9. Is it more common to just use spaces instead?
Common? Probably half and half. I like spaces better. You can set many editors to transform your tabs into a set number of spaces, which means you can set the indent that you want and it will always be there. Whatever you do, just pick one - tabs or spaces - but do not mix and match.
ronelson: Thanks. The design lead wants this to always run from a terminal so that he can always see any possible error messages on-the-fly. Either he or one other specific person will be running it, as it's not for production software. The only reason the error correction was important was that typos will happen, and it's nice to account for them.
You should find a way to simply error out entirely if it is called non-interactively, then. Otherwise you could have a process sitting there for months waiting on input it will never receive - or multiple processes if it gets stuck in cron as "script strat" by accident. I would suggest starting here and customizing it with the appropriate error message.
 
Status
You're currently viewing only ronelson's posts. Click here to go back to viewing the entire thread.
Not open for further replies.