Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown argument -, when spawning shell in a folder path where a ' - ' is present #7487

Closed
4 tasks done
MattiooFR opened this issue Feb 8, 2023 · 7 comments
Closed
4 tasks done
Labels
status/duplicate Duplicate issues

Comments

@MattiooFR
Copy link

  • I am on the latest stable Poetry version, installed using a recommended method.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have consulted the FAQ and blog for any relevant entries or release notes.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

Issue

Using the local venv option, I have issue with the command poetry shell if my project folder is located in a path where there is a ' - ' in the path

brainsorting.dev on  src is 📦 v0.1.0 via 🐍 v3.11.1 took 2s
❯ poetry shell -vvv
Loading configuration file /Users/mattioo/Library/Preferences/pypoetry/config.toml
Using virtualenv: /Users/mattioo/Documents/2 - Areas/brainsorting.dev/.venv
Spawning shell within /Users/mattioo/Documents/2 - Areas/brainsorting.dev/.venv

brainsorting.dev on  src is 📦 v0.1.0 via 🐍 v3.11.1
❯ emulate bash -c '. '/Users/mattioo/Documents/2 - Areas/brainsorting.dev/.venv/
bin/activate''
emulate: unknown argument -
@MattiooFR MattiooFR added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Feb 8, 2023
@dimbleby
Copy link
Contributor

dimbleby commented Feb 8, 2023

looks like you've simply failed to quote the path?

@neersighted
Copy link
Member

poetry shell is failing to quote the path -- this is a duplicate of the current quoting issue, though I can't find it right now 😆

@dimbleby
Copy link
Contributor

dimbleby commented Feb 8, 2023

I dont think it is - anyway the command that @MattiooFR pasted above is making a mess of the quoting.

(They seem to be trying to put a single-quoted path inside an already single-quoted string)

@neersighted
Copy link
Member

They didn't type that -- poetry shell did using pexpect.

@dimbleby
Copy link
Contributor

dimbleby commented Feb 8, 2023

ack - in which case I agree that it's a bug, but I don't know the duplicate. (In particular it's not the same as the one with all the subprocess calls, per #7471)

@neersighted
Copy link
Member

Duplicate #7244.

@neersighted neersighted closed this as not planned Won't fix, can't repro, duplicate, stale Feb 8, 2023
@neersighted neersighted added status/duplicate Duplicate issues and removed kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Feb 8, 2023
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

3 participants