SSH - Command containing space only sends first word

Open
#453 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
go
Domain
cli

Research direction

Start at the lagoon ssh entry point and reproduce the reported -C "drush status" invocation against a container. Trace how the command argument is parsed and passed, then verify that the complete command, including spaces, is executed rather than only its first word.

Written by the indexing model from the issue text.

Description

Describe the bug
When using the -C flag for lagoon ssh, only the first word is being sent as the command

To Reproduce
Steps to reproduce the behavior:

  1. lagoon ssh -p -e main
  2. Now connected to container: drush status
  3. Notice working drush status output
  4. CTRL-D - out of container
  5. lagoon ssh -p -e main -C "drush status"
  6. Notice drush "help" output - "status" seemingly not set

Expected behavior
The full command is sent and executed

Desktop (please complete the following information):

  • OS: Pop_OS
lagoon v0.32.0+f91b4ec0 (go1.24.3)
built 2025-07-16T12:51:31+0000```
Dominant language
Go
Stars
28
Forks
14
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from uselagoon/lagoon-cli

All issues in uselagoon/lagoon-cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.