How to make in the following the comment `# Test` not exclude `ca-certificates` from `apt install`?

```bash
apt install \
htop \
# Test
ca-certificates
```
```
htop is already the newest version (3.4.1-5).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
bash: ca-certificates: command not found
```
May 20, 2:41pm

The comment line breaks the command continuation in Bash. The backslash \ at the end of a line continues the command to the next non-empty, non-comment line. Since # Test is a comment, ca-certificates is interpreted as a separate command.

Fix: Move the comment to the end of a line with a continuation or another argument:

bash
apt install \
        htop \  # Test
        ca-certificates

or

bash
apt install \
        htop \
        ca-certificates  # Test
May 20, 2:41pm

This is a shared conversation and may include unverified content that doesn't reflect Mistral AI's views. Login to resume chatting.

Le Chat can make mistakes. Check answers. Learn more