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

]link.Create # ~/folder incorrectly linked $HOME/~/folder #680

Open
bear8642 opened this issue Oct 23, 2024 · 1 comment
Open

]link.Create # ~/folder incorrectly linked $HOME/~/folder #680

bear8642 opened this issue Oct 23, 2024 · 1 comment
Labels
enhancement New feature or request low Needs doing, but isn't urgent

Comments

@bear8642
Copy link

Is your feature request related to a problem? Please describe.
~ in the shell expands to the home directory. I expected the same for ]LINK however the ~ is incorrectly taken to be a directory name.

Describe the solution you'd like

]Llink.Create # ~/folder
Linked: # ←→/home/user/folder

or

]Llink.Create # ~/folder
Linked: # ←→ ~/folder

Describe alternatives you've considered

]link.Create # folder ⍝ I was changing an absolute path to ~
]link.Create # /home/user/folder ⍝ much more convenient to type ~
@bear8642 bear8642 added the enhancement New feature or request label Oct 23, 2024
@abrudz
Copy link
Member

abrudz commented Oct 27, 2024

~ (and many other likes) are shell features, not file system features, and thus do not generally apply to paths used inside applications. That said, ⎕SE.Dyalog.Utils.ExpandConfig does such shell expansion.

@abrudz abrudz added the low Needs doing, but isn't urgent label Dec 17, 2024
@bear8642 bear8642 changed the title ]link.Create # ~/folder in correctly linked $HOME/~/folder ]link.Create # ~/folder incorrectly linked $HOME/~/folder Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low Needs doing, but isn't urgent
Projects
None yet
Development

No branches or pull requests

2 participants