[Pkg-mc-devel] Bug#512715: Bug#512715: mc: fish can't get directory listings from solaris or HP-UX hosts
Patrick Winnertz
winnie at debian.org
Fri Jan 23 06:25:38 UTC 2009
Am Freitag 23 Januar 2009 03:41:20 schrieb Bruce Hunsaker:
> Package: mc
> Version: 2:4.6.2~git20080311-2
> Severity: important
>
>
> When trying to connect to a remote Solaris host via 'cd /#sh:remotehost/'
> A directory listing cannot be obtained because fish was modified to
> use the 'Q' option to ls in order to quote filenames in the output
> of ls. The Q option is not valid for versions of ls on Solaris, HP-UX
> and probably other unix variants. Therefore this method of obtaining
> a directory list is not portable, and makes this feature of MC unusable
> when trying to connect to various types of unix systems.
>
> See vfs/fish.c at about lines 369-385.
Yes, that's true.
I'm already working on a patch which make this portable for more or less every
system. (The new stuff will be based on perl with an fallback to the old code
(with -Q if available, without if it's not available).
Everything on a remote fs will work (files with spaces on start or end, special
chars, links) if the perl stuff get's executed or the ls -Q stuff.
If there is no perl nor a -Q option to ls nothing of the above will work (as
it is now).
I hope this is a good solution for this problem.
Greetings
Winnie
ps: I'll raise this bug to something which is RC after the patch is available.
--
. '' ` . Patrick Winnertz <winnie at debian.org>
: :' : proud Debian developer, author, administrator, and user
`. `'` http://people.debian.org/~winnie - http://www.der-winnie.de
`- Debian - when you have better things to do than fixing systems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/pkg-mc-devel/attachments/20090123/270279be/attachment-0001.pgp
More information about the Pkg-mc-devel
mailing list