On the bash terminal if I execute the following for loop:
for i in {1..5}; do echo $i; done The echo commands are not added to the history of the current shell. Is it because the commands in for (in do section) are run in subshell? If so is there a way to run them in the current shell instead? Or is it not possible because it's "running" for at the time?