Environment
Description
Claude Code CLI has issues processing commands with backslashes as line continuations. The CLI appears to treat the backslash literally rather than as a line continuation character.
Reproduction Steps
- Run a multi-line command with backslashes for line continuation
- Example:
git rm --cached \
/path/to/file1 \
/path/to/file2
Expected Behavior
Command should be interpreted as a single line with the backslashes properly handling line continuation.
Actual Behavior
Receiving error: fatal: pathspec '' did not match any files
The CLI interprets the backslash as a literal character rather than line continuation, causing the command to fail.
Logs
Bash(git rm --cached \
/home/jonflatt/n8n/claude-repo/test/test-debug-claude.sh \
...)
⎿ Error: fatal: pathspec '\' did not match any files
Working around by putting commands on a single line works correctly.
Environment
Description
Claude Code CLI has issues processing commands with backslashes as line continuations. The CLI appears to treat the backslash literally rather than as a line continuation character.
Reproduction Steps
Expected Behavior
Command should be interpreted as a single line with the backslashes properly handling line continuation.
Actual Behavior
Receiving error: fatal: pathspec '' did not match any files
The CLI interprets the backslash as a literal character rather than line continuation, causing the command to fail.
Logs
Working around by putting commands on a single line works correctly.