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

Fix _tide_pwd when the user's HOME contains spaces. #482

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexrp
Copy link

@alexrp alexrp commented Jan 17, 2024

On my Windows system, for whatever reason, my HOME is C:\Users\Alex Rønne Petersen rather than the usual C:\Users\alex kind of thing you'd expect. (And yes, this has found a great many bugs in various pieces of software. 😄)

This would lead to more and more errors the deeper into a directory I went:

❯ cd /z
❯ cd Source
string replace: too many arguments
❯ cd tests
string replace: too many arguments
string replace: too many arguments
❯ cd cs
string replace: too many arguments
string replace: too many arguments
string replace: too many arguments
❯ cd bin
string replace: too many arguments
string replace: too many arguments
string replace: too many arguments
string replace: too many arguments

Quoting the use of $HOME here fixes the issue.

Description

Motivation and Context

Closes #

Screenshots (if appropriate)

How Has This Been Tested

  • I have tested using Linux.
  • I have tested using MacOS.

Checklist

  • I am ready to update the wiki accordingly.
  • I have updated the tests accordingly.

On my Windows system, for whatever reason, my `HOME` is `C:\Users\Alex Rønne Petersen` rather than the usual `C:\Users\alex` kind of thing you'd expect. (And yes, this has found a great many bugs in various pieces of software. 😄)

This would lead to more and more errors the deeper into a directory I went:

```
❯ cd /z
❯ cd Source
string replace: too many arguments
❯ cd tests
string replace: too many arguments
string replace: too many arguments
❯ cd cs
string replace: too many arguments
string replace: too many arguments
string replace: too many arguments
❯ cd bin
string replace: too many arguments
string replace: too many arguments
string replace: too many arguments
string replace: too many arguments
```

Quoting the use of `$HOME` here fixes the issue.
@alexrp
Copy link
Author

alexrp commented Jan 17, 2024

I'm new to fish and barely have any idea what I'm doing, so hopefully this change makes sense. 👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant