Skip to content

Cannot specify path including spaces in --editor argument of command line #327

@murata100

Description

@murata100

Describe the Issue

input

colima start --edit --editor "/usr/bin/my editor"

output

INFO[0000] editing in /usr/bin/my editor
FATA[0000] error editing config file: fork/exec /usr/bin/my: no such file or directory

Version

Colima Version:

colima version 0.4.2
git commit: f112f336d05926d62eb6134ee3d00f206560493b

runtime: docker
arch: x86_64
client: v20.10.17
server: v20.10.11

Lima Version:

limactl version 0.11.0

Qemu Version

qemu-img version 6.2.0
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers

Operating System

  • macOS Intel
  • macOS m1
  • Linux

To Reproduce

Steps to reproduce the behavior:

colima start --edit --editor "/usr/bin/my editor"

Expected behavior

open "/usr/bin/my editor"

Additional context

nothing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions