Conversation
Notices
-
Embed this notice
Alexandre Oliva (lxo@gnusocial.net)'s status on Wednesday, 20-Sep-2023 10:04:26 JST Alexandre Oliva no difference. the dangling '&&' makes the command incomplete, and kind-of forces an implicit backslash at the end of the line, so the command continues on the next line. try it in an interactive shell, with and without the backslash -
Embed this notice
Biason::Julio::new(); (juliobiason@functional.cafe)'s status on Wednesday, 20-Sep-2023 10:04:27 JST Biason::Julio::new(); Dear Lazyfedi:
What does && without any following do in #Bash?
For example, is there any difference between
command1 &&
command2and
command1 && \
command2?
-
Embed this notice