Re: A fix for the F3 /var/log bug... / POSIX and '##'

2003-06-06 Thread Alfie Costa
On Sun, 1 Jun 2003 12:10, Oswald Buddenhagen wrote: one thing to consider is, whether all 'file's in the wild support -z or a configure check and optionally manual on-the-fly decompression would have to be done instead. Dismaying thought. Going through the checklist: Linux is OK. HP-UX?

Re: A fix for the F3 /var/log bug... / POSIX and '##'

2003-06-06 Thread Pavel Roskin
On Fri, 6 Jun 2003, Alfie Costa wrote: Recap: /var/log files don't view right using F3 in 'mc'. This can be gotten around using various filters. The two attempts considered here so far (one using the POSIX shell's '##', and the other using 'file -z') may not work out of the box on all of

Re: A fix for the F3 /var/log bug... / POSIX and '##'

2003-06-02 Thread Alfie Costa
On Sun, 1 Jun 2003 11:58, Oswald Buddenhagen wrote: that's wrong reasoning. the claim that a shell is posix-compliant does not imply that it does not contain non-posix extensions. Maybe we do not agree on our terms, and if that is so then this would be a usage question. The HP-UX text quoted

Re: A fix for the F3 /var/log bug...

2003-06-01 Thread Alfie Costa
On Thu, 29 May 2003 23:26, Oswald Buddenhagen wrote: x=QuousqueTandemAbutere echo ${x##Quousque} /bin/sh on solaris 8: bad substitution Thank you, kind SunOS user. In the meantime, for those who prefer the 'file -z' way, attached is the same patch, changed so it does it the 'file -z |

Re: A fix for the F3 /var/log bug... / POSIX and '##'

2003-06-01 Thread Alfie Costa
On Thu, 29 May 2003 23:26, Oswald Buddenhagen wrote: [ AC's quote from Debian 'man dash' deleted... ] according to the unix history graph (http://www.levenez.com/unix/history.html) this sentence must be at least ten years old. ergo i would not bet on the accuracy of the rest of the

Re: A fix for the F3 /var/log bug... / POSIX and '##'

2003-06-01 Thread Oswald Buddenhagen
On Sun, Jun 01, 2003 at 02:10:53AM -0400, Alfie Costa wrote: but why would BSD Debian bluff about POSIX? because nobody bothered to update it? not that this would happen very seldom with OSS ... Eureka, [...] That shell has the '##'. Therefore either Debian, BSD and HP are all wrong

Re: A fix for the F3 /var/log bug...

2003-05-30 Thread Alfie Costa (backup address)
On Thu, 29 May 2003 11:31, Oswald Buddenhagen wrote: yep. it's [ double hashes ] a bash-ism (or a ksh-ism, fwiw). It came from from Korn, but it's POSIX shell syntax now. other than that, i pretty much dislike this directory-based special-casing. i think my suggestion with file -z (or

Re: A fix for the F3 /var/log bug...

2003-05-30 Thread Oswald Buddenhagen
On Thu, May 29, 2003 at 02:44:59PM -0400, Alfie Costa (backup address) wrote: On 29 May 2003, at 0:09, Pavel Roskin [EMAIL PROTECTED] wrote: I believe double hash used in the patch is non-portable. I only use Linux, so all I know for sure is that double hash works on Debian, (ash, dash,

A fix for the F3 /var/log bug...

2003-05-29 Thread Alfie Costa
An attempted practical fix for a longstanding bug and/or nuisance. Earlier I posted it to a Debian buglist, but the Debian maintainer is presently silent, so... In 'mc', hitting F3 or 'Enter' doesn't work right for files in /var/log. There was a thread about this on 'mc-devel' in June 2001:

Re: A fix for the F3 /var/log bug...

2003-05-29 Thread Pavel Roskin
On Wed, 28 May 2003, Alfie Costa wrote: The fix is described (with a patch for '/etc/mc/mc.ext') here: Debian Bug report logs - #179350 mc hangs viewing a .gz file http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=179350 I believe double hash used in the patch is

Re: A fix for the F3 /var/log bug...

2003-05-29 Thread Jindrich Makovicka
Oswald Buddenhagen wrote: On Thu, May 29, 2003 at 12:09:10AM -0400, Pavel Roskin wrote: On Wed, 28 May 2003, Alfie Costa wrote: The fix is described (with a patch for '/etc/mc/mc.ext') here: Debian Bug report logs - #179350 mc hangs viewing a .gz file