Skip to content

Update the cd script to work with directory names that include spaces#482

Open
yithian wants to merge 1 commit intomoovweb:masterfrom
yithian:cd_script_allows_spaces_in_dirname
Open

Update the cd script to work with directory names that include spaces#482
yithian wants to merge 1 commit intomoovweb:masterfrom
yithian:cd_script_allows_spaces_in_dirname

Conversation

@yithian
Copy link

@yithian yithian commented Jun 26, 2024

This patch adds (escaped) quotation marks around the directory argument to the builtin cd so that the user can cd into a directory with spaces in it

@yithian
Copy link
Author

yithian commented Jun 26, 2024

This should fix #457

This patch updates the __gvm_oldcd function to handle directory
arguments with spaces while also preserving the ability not to provide
any arguments to cd to return to the home directory
@palonsoro
Copy link

I have been testing it on my workstation and it works

Copy link

@ducminhgd ducminhgd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested and it also solves #515

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.

5 participants