Skip to content

SSH - Command containing space only sends first word #453

@bryangruneberg

Description

@bryangruneberg

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```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions