zsh-workers
 help / color / mirror / code / Atom feed
* Strange behaviour of the prompt
  1995-12-03 22:21 zsh 2.5.03 suggestion Chris Torek
@ 1995-01-29 13:21 ` Soter Mule'
  1995-12-04 14:31 ` zsh 2.5.03 suggestion Peter Stephenson
  1 sibling, 0 replies; 3+ messages in thread
From: Soter Mule' @ 1995-01-29 13:21 UTC (permalink / raw)
  To: zsh-workers; +Cc: zsh-list

I use zsh on a DEC 3000 300X under OSF/1 3.2, decterm; zsh beta12.
My left and right prompt are invisible.
Can someone help me?

Thanks a lot in advance,
Soter


^ permalink raw reply	[flat|nested] 3+ messages in thread

* zsh 2.5.03 suggestion
@ 1995-12-03 22:21 Chris Torek
  1995-01-29 13:21 ` Strange behaviour of the prompt Soter Mule'
  1995-12-04 14:31 ` zsh 2.5.03 suggestion Peter Stephenson
  0 siblings, 2 replies; 3+ messages in thread
From: Chris Torek @ 1995-12-03 22:21 UTC (permalink / raw)
  To: zsh-list

We have been trying to change sys_errlist from `const char *const[]'
back to `char *[]', or, better yet, get people to stop using it
entirely.  Towards the latter, it would be nice if zsh's utils.c
would use strerror() rather than sys_errlist, with a `backup'
implementation that uses sys_errlist[argument] for systems that
lack strerror (perhaps even providing this backup in the form of
a strerror() implementation).

I will leave the exact details up to you -- you have some existing
HAVE_* macros, and I would recommend adding HAVE_STRERROR here,
unless you would prefer to simply provide an auxiliary `strerror.c'
source file, using it only on those systems that lack strerror().

Chris


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: zsh 2.5.03 suggestion
  1995-12-03 22:21 zsh 2.5.03 suggestion Chris Torek
  1995-01-29 13:21 ` Strange behaviour of the prompt Soter Mule'
@ 1995-12-04 14:31 ` Peter Stephenson
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Stephenson @ 1995-12-04 14:31 UTC (permalink / raw)
  To: zsh-list

> We have been trying to change sys_errlist from `const char *const[]'
> back to `char *[]', or, better yet, get people to stop using it
> entirely.  Towards the latter, it would be nice if zsh's utils.c
> would use strerror() rather than sys_errlist, with a `backup'
> implementation that uses sys_errlist[argument] for systems that
> lack strerror (perhaps even providing this backup in the form of
> a strerror() implementation).

Well, here's the simplest possibility (which requires re-running
autoconf).

I don't quite understand what's going on if HAVE_SYS_ERRLIST isn't
defined.  It's behaving as if there's one being supplied, but I don't
know where it's coming from.

*** Src/signals.h.se	Mon Dec  4 13:42:37 1995
--- Src/signals.h	Mon Dec  4 13:49:57 1995
***************
*** 31,37 ****
  
  #include "signames.h"
  
! #ifndef HAVE_SYS_ERRLIST
  extern char *sys_errlist[];
  #endif
  
--- 31,37 ----
  
  #include "signames.h"
  
! #if !defined(HAVE_SYS_ERRLIST) && !defined(HAVE_STRERROR)
  extern char *sys_errlist[];
  #endif
  
*** Src/utils.c.se	Mon Dec  4 13:42:43 1995
--- Src/utils.c	Mon Dec  4 14:00:23 1995
***************
*** 97,108 ****
--- 97,118 ----
  		    errflag = 1;
  		    return;
  		}
+ #ifdef HAVE_STRERROR
  		if (num == EIO)
+ 		    fputs(strerror(num), stderr);
+ 		else {
+ 		    char *errmsg = strerror(num);
+ 		    fputc(tulower(errmsg[0]), stderr);
+ 		    fputs(errmsg + 1, stderr);
+ 		}
+ #else
+ 		if (num == EIO)
  		    fputs(sys_errlist[num], stderr);
  		else {
  		    fputc(tulower(sys_errlist[num][0]), stderr);
  		    fputs(sys_errlist[num] + 1, stderr);
  		}
+ #endif
  		break;
  	    }
  	} else
*** config.h.in.se	Tue Nov 21 06:38:48 1995
--- config.h.in	Mon Dec  4 14:06:09 1995
***************
*** 248,253 ****
--- 248,256 ----
  /* Define if you have the sigsetmask function.  */
  #undef HAVE_SIGSETMASK
  
+ /* Define if you have the strerror function.  */
+ #undef HAVE_STRERROR
+ 
  /* Define if you have the strftime function.  */
  #undef HAVE_STRFTIME
  
*** configure.in.se	Mon Dec  4 13:52:35 1995
--- configure.in	Mon Dec  4 13:54:10 1995
***************
*** 309,315 ****
  AC_CHECK_FUNCS(strftime waitpid select tcsetpgrp tcgetattr strstr lstat \
                getlogin setpgid gettimeofday gethostname mkfifo wait3 difftime  \
                sigblock sigsetmask sigrelse sighold killpg sigaction getrlimit  \
!               sigprocmask setuid seteuid setreuid setresuid)
  
  dnl -------------
  dnl CHECK SIGNALS
--- 309,315 ----
  AC_CHECK_FUNCS(strftime waitpid select tcsetpgrp tcgetattr strstr lstat \
                getlogin setpgid gettimeofday gethostname mkfifo wait3 difftime  \
                sigblock sigsetmask sigrelse sighold killpg sigaction getrlimit  \
!               sigprocmask setuid seteuid setreuid setresuid strerror)
  
  dnl -------------
  dnl CHECK SIGNALS

-- 
Peter Stephenson <pws@ifh.de>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1995-12-07 13:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-12-03 22:21 zsh 2.5.03 suggestion Chris Torek
1995-01-29 13:21 ` Strange behaviour of the prompt Soter Mule'
1995-12-04 14:31 ` zsh 2.5.03 suggestion Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).