2006/1/26, Isak Savo <[EMAIL PROTECTED]>:
> Crap, forgot to hit "reply all" :-/
>
> ---------- Forwarded message ----------
> From: Isak Savo <[EMAIL PROTECTED]>
> Date: 2006-jan-26 19:52
> Subject: Re: [Fish-users] Completion bug
> To: Axel Liljencrantz <[EMAIL PROTECTED]>
>
>
> 2006/1/26, Axel Liljencrantz <[EMAIL PROTECTED]>:
> > 2006/1/26, Philip Ganchev <[EMAIL PROTECTED]>:
> > Also, I'd be interested to hear peoples opinions on what fish should
> > do when a command substitution returns invalid output. Right now, the
> > whole line is discarded and an error message is printed. Some
> > alternatives:
> >
> > * The entire command substitution fails, either with or without a warning
> > * Silently skip bad lines, either with or without a warning (This is
> > the current bahaviour, with the warning)
> > * Ignore only the 'broken' character, either with or without a warning
> > * Try using a fallback character set, either with or without a warning
> > (I hate to admit it, but which set to use should probably be user
> > configurable)
>
> Just display the name of the command without description.. It's far
> more important to know that the command exists than the description of
> it.
>
> Something like this:
> $ ls<TAB>
> ls (List contents of directory)
> lsfoo (<<No description found>>)
> lspci (List all PCI devices)
> ...
>
> Perhaps the "No description found" part could be error colored or
> something. It could also be completely omitted, leaving just an empty
> parenthesis.
In this particular case, that can be done. I was thinking about the
general case. For example, on my machine the 'locale -a' command seems
to outputs locale names in the native charset of the locale, which
will sometimes result in invalid strings. What should a command like:
for i in (locales -a)
...
end
do?
Should it skip the the broken strings. Try to guess what they are?
Skip the broken characters? Maybe the whole command should fail?
>
> Just my .02€
> Isak
>
>
> --
> Isak
>
--
Axel
N�HY隊X���'���u���[�������
ަ�k��!���W�~�鮆�zk��C� [EMAIL PROTECTED],����a{�
��,�H��4�m�����Z��jY�w��ǥrg