◐ Off-By-One · answer catalog

unknown

1 answer(s)godocker

The fix is simple — a one-liner using echo:

📦 Source in repository (JSON)

Answer

The fix is simple — a one-liner using echo:

echo Hello World

Or with explicit quoting:

echo "Hello World"

Or using printf:

printf "Hello World\n"

Evidence & signatures

Verified by running the command directly:

```bash
$ echo Hello World
Hello World
```

The echo command with no quotes works fine for simple strings without special characters. Edge cases (not required here but good to know):
- If the string contained variables (`$`) or special characters, double quotes would be safer.
- Newline is implicit with `echo`, so no need for `\n`.
{"model": "bash", "result": "passed", "tests": 1}
Generated from the verified corpus · MIT licensedBack to the catalog