[libvirt] [PATCH] Make virsh support '~' and '$HOME' in interactive mode

Daniel P. Berrange berrange at redhat.com
Thu Mar 21 10:20:57 UTC 2013


On Thu, Mar 21, 2013 at 05:00:58PM +0800, Zhang Xiaohe wrote:
> This patch makes '~' and '$HOME' can be recognized by virsh in
> interactive mode. These two variables are replaced with real
> path.

If we're going to the trouble of expanding $HOME, then we might
as well just make it expand arbitrary environment variables
rather than hardcoding $HOME.

Also, we'll need a way to escape the special meaning of '~'
and '$' to get them treated as literal characters instead of
special characters.

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list