Bug 806793
Summary: | [RFE]virsh should support '~' ‘$HOME’ in interactive mode | ||
---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | zhpeng |
Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> |
Status: | CLOSED DEFERRED | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | unspecified | CC: | ajia, crobinso, cwei, dyuan, eblake, mzhan, rbalakri, xen-maint |
Target Milestone: | --- | Keywords: | FutureFeature |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-03-23 21:01:34 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
zhpeng
2012-03-26 09:09:30 UTC
Some info from Eric: ~ expansion is normally done by the shell, but only in certain positions on the command line. It might be worth teaching virsh how to do ~ expansion, since those arguments don't fall under the shell's rules. ~ expansion is just shorthand for $HOME. no-interactive mode works: [root@zhpeng ~]# virsh save win2008 $HOME/win2008.save Domain win2008 saved to /root/win2008.save [root@zhpeng ~]# virsh save win2008 ~/win2008.save Domain win2008 saved to /root/win2008.save eh, I don't know... virsh is not a real shell, $ variables don't work work, you can't pipe, etc. why make an exception for '~' ? if someone provided a patch for this I'm sure we would take it but it doesn't belong in the bug tracker IMO |