Skip to content

Shell commands using env variables and spaces fail #370

@eebs

Description

@eebs

I'm not 100% sure what the exact cause or error is, but here are some test cases.

Works:

gitsh (ek-add-docs-to-readme@) ➜ !FOO='foo' git log --oneline -n 1
eeb5015 (HEAD -> ek-add-docs-to-readme, origin/ek-add-docs-to-readme) Add note about `man gitsh` to Readme.

gitsh (ek-add-docs-to-readme@) ➜
gitsh (ek-add-docs-to-readme@) ➜ !echo 'hi there'
hi there

gitsh (ek-add-docs-to-readme@) ➜

Fails:

gitsh (ek-add-docs-to-readme@) ➜ !FOO='foo bar' git log
/bin/sh: bar: command not found

gitsh (ek-add-docs-to-readme@) ➜

In my case git is an alias to hub, though I have tested without hub and the above behavior is still exhibited.

gitsh version 0.14
git version 2.20.1
hub version 2.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions