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

CLI: support ~ as a valid direcoty #34

Open
tzach opened this issue Mar 6, 2014 · 3 comments
Open

CLI: support ~ as a valid direcoty #34

tzach opened this issue Mar 6, 2014 · 3 comments

Comments

@tzach
Copy link
Member

tzach commented Mar 6, 2014

Linux users are used to use ~ as to represent home directory
It will be useful to have the same semantic on OSv CLI, where ~ is the root dir.

@nyh
Copy link
Contributor

nyh commented Mar 6, 2014

On Thu, Mar 6, 2014 at 11:12 AM, Tzach Livyatan [email protected]:

Linux users are used to use ~ as to represent home directory
It will be useful to have the same semantic on OSv CLI, where ~ is the
root dir.

Tzach, why would anyone prefer to type ~/dir instead of /dir ? :-)

Nadav Har'El
[email protected]

@tzach
Copy link
Member Author

tzach commented Mar 6, 2014

I know I do it, out of habit.
It might be misleading, because there are no users, and / is not my home.
If anyone else want to see ~, +1 in the comments

@lightpriest
Copy link
Contributor

If I'm not wrong, tilde is part of the general shell expansion. Currently we have no expansion at all, if we're at it, it might be better to add full, or at least, most of the expansion characters (, *, ?), etc.

That being said, expansion usually serves scripting (or "command-line scripting"), but we don't really have that.

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

No branches or pull requests

3 participants