cloudius-systems / mgmt

20 stars 11 forks source link

CLI: support ~ as a valid direcoty #34

Open tzach opened 10 years ago

tzach commented 10 years ago

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 commented 10 years ago

On Thu, Mar 6, 2014 at 11:12 AM, Tzach Livyatan notifications@github.comwrote:

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 nyh@cloudius-systems.com

tzach commented 10 years ago

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 commented 10 years ago

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.