bregman-arie / devops-exercises

Linux, Jenkins, AWS, SRE, Prometheus, Docker, Python, Ansible, Git, Kubernetes, Terraform, OpenStack, SQL, NoSQL, Azure, GCP, DNS, Elastic, Network, Virtualization. DevOps Interview Questions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mistake in qustions

oriavsapir opened this issue · comments

here:
https://github.com/bregman-arie/devops-exercises/tree/master/topics/shell
in this questions:
"True or False? When a certain command/line fails in a shell script, the shell script, by default, will exit and stop running"
your answer:
Depends on the language and settings used. If the script is a bash script then this statement is true. When a script written in Bash fails to run a certain command it will keep running and will execute all other commands mentioned after the command which failed....
and the real answer should be - If the script is a bash script then this statement is False - because this is not stop/exit running.