-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Open
Labels
bugSomething isn't workingSomething isn't workingneeds-triageneeds to be reviewedneeds to be reviewed
Description
Describe the bug
If I run this:
$ gh cs cp -c ominous-space-journey-wv6jg4qrqh5xqq remote:/workspaces/github/Gemfile Gemfile
/usr/bin/scp: '/workspaces/github/Gemfile': No such file or directory
shell closed: exit status 1
I know the file exists, though. In order to copy it, instead I need to run this:
$ gh cs cp -e -c ominous-space-journey-wv6jg4qrqh5xqq remote:/workspaces/github/Gemfile Gemfile
/usr/bin/scp: '/workspaces/github/Gemfile': No such file or directory
shell closed: exit status 1
The help for cs cp
describes the -e
flag as "-e, --expand Expand remote file names on remote shell" which in my mind, at least, means expanding ~
and environment variables. However, I am providing absolute paths with no variables.
Affected version
$ gh version
gh version 2.76.2 (2025-07-30)
https://github.com/cli/cli/releases/tag/v2.76.2
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingneeds-triageneeds to be reviewedneeds to be reviewed