Before I start I'm not asking for any code to be written just to enlighten and the behavior I am having. I have this snippet of code.
NOW=$(date +"%H") While [ true ]; do echo $NOW done
I would of expected so that when it would be printed to the screen the time would update since I am storing the date command and formatting it into the variable NOW , but instead all it does is keep printing the same date that the script was started at. Will someone enlighten me on why it does that.