X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=tools%2Fvirt-ls;h=9271a9149ba86b9c20e94a08296f76588e883a84;hb=6391d1a7cfa10337a75465c72d49df3c9ebc65ca;hp=a55f6c3143a1fa141b6a40b3bdc079a3331acfe6;hpb=ea124897881d9e40d89eca5307e04def0fb42bdb;p=libguestfs.git diff --git a/tools/virt-ls b/tools/virt-ls index a55f6c3..9271a91 100755 --- a/tools/virt-ls +++ b/tools/virt-ls @@ -183,7 +183,6 @@ my %fses = my $oses = inspect_operating_systems ($g, \%fses); my @roots = keys %$oses; -die __"no root device found in this operating system image\n" if @roots == 0; die __"multiboot operating systems are not supported by virt-ls\n" if @roots > 1; my $root_dev = $roots[0]; @@ -202,12 +201,19 @@ unless ($mode) { my $r; my $line; while (($r = read (F, $line, 1024)) > 0) { - $line =~ tr{\0}{\n}; - print $line; + $line =~ tr{\0}{\n}; + print $line; } close F; } +=head1 SHELL QUOTING + +Libvirt guest names can contain arbitrary characters, some of which +have meaning to the shell such as C<#> and space. You may need to +quote or escape these characters on the command line. See the shell +manual page L for details. + =head1 SEE ALSO L, @@ -221,7 +227,7 @@ L. =head1 AUTHOR -Richard W.M. Jones L +Richard W.M. Jones L =head1 COPYRIGHT