When is using a ";" (semi-colon) in a script vital to it?

C

CrazedNerd

Guest
I'm currently reading "bash idioms", and i was happy to know that in a script, you don't actually need ; for commands, you can just put the next thing on a line. In this respect it's like python. Are there times when you need to use the semicolon for multiple lines of code?
 


JasKinasis

Well-Known Member
Joined
Apr 25, 2017
Messages
1,792
Reaction score
2,601
Credits
15,165
When you’re trying to run multiple commands on a single line, without entering them as separate lines!
 

Staff online

Members online


Top