multipass icon indicating copy to clipboard operation
multipass copied to clipboard

Characters not escaped in commands

Open Saviq opened this issue 5 years ago • 12 comments

$ multipass mount . primary:~/path/with\$dollarsign
$ multipass exec primary -- ls path/with\$dollarsign
ls: cannot access 'path/with$dollarsign': No such file or directory
$ multipass exec primary -- ls path/with
Dokumenty   Muzyka   Obrazy   Pobrane   Publiczny   Pulpit   Szablony   Wideo

Originally posted by @Saviq in https://github.com/canonical/multipass/pull/1439#pullrequestreview-395244787

Saviq avatar Apr 17 '20 12:04 Saviq

Bug #1840 has been flagged as duplicate, there is a similar issue with the transfer command and other special chars (~ for the target directory or dir/*), the title could be made less specific if that's the same issue

seb128 avatar Nov 17 '20 15:11 seb128

Right, changed the title here, thanks!

luis4a0 avatar Nov 17 '20 15:11 luis4a0

I have a same problem

letanloc1998 avatar Dec 16 '20 10:12 letanloc1998

My problem seems related to this issue. with version 1.8.0. I can not transfer hidden file with dot in its name like .vimrc.

$ multipass  transfer config.yaml master-0:/home/ubuntu/config.yaml # this is ok
$ multipass  transfer .vimrc master-0:/home/ubuntu/.vimrc
transfer failed: [sftp push] error opening file for reading: Permission denied

WLBF avatar Jan 15 '22 11:01 WLBF

@WLBF it's unrelated actually. The snap confinement prevents us from reading hidden files for security reasons:

https://snapcraft.io/docs/home-interface

Saviq avatar Jan 15 '22 13:01 Saviq

This is still the case. I suppose we should just follow whatever scp does in here.

ricab avatar Nov 25 '25 17:11 ricab

Bumped priority because this can have unexpected consequences:

$ multipass mount adir/ prodigious-mamba:with\$USER
mount failed: The following errors occurred:
error mounting "/home/ubuntu/with$USER": Process returned exit code: 1: sshfs: bad mount point `/home/ubuntu/withubuntu': No such file or directory

$ multipass exec -n prodigious-mamba -- ls
snap  withroot

ricab avatar Nov 25 '25 18:11 ricab

Are people still using Multipass? I switched to WSL and Docker because Multipass had too many issues that I could never fully resolve.

letanloc1998 avatar Nov 26 '25 00:11 letanloc1998

@letanloc1998 Kudos to you for an unhelpful comment for this particular issue! 🙄

townsend2010 avatar Nov 26 '25 15:11 townsend2010

@letanloc1998 Kudos to you for an unhelpful comment for this particular issue! 🙄

5 years but still not fixed

Image

letanloc1998 avatar Nov 26 '25 17:11 letanloc1998

We're not idle and have been improving Multipass in many other ways. But we don't have infinite capacity and we need to choose some things over others. Whatever priorities we choose, they can never align with every user's needs or desires. Hopefully they align with some.

In your case @letanloc1998, hopefully there is nothing you're entitled to that you aren't getting?

This is open source, so feel free to contribute back.

ricab avatar Nov 26 '25 17:11 ricab

5 years but still not fixed

Yes, and that was pointed out by @ricab just previous to your unhelpful comment. If you are no longer using Multipass, why are you even here making unhelpful comments? It's a small team with big ambitions. Please add something positive or just let it go.

townsend2010 avatar Nov 26 '25 17:11 townsend2010