zsh-workers
 help / color / mirror / code / Atom feed
From: sada@rr.IIJ4U.OR.JP (SADA Kenji)
To: zsh-workers@sunsite.auc.dk
Cc: sada@rr.IIJ4U.OR.JP
Subject: zsh 3.1.5 su problem
Date: 11 Jun 1999 00:01:34 +0900	[thread overview]
Message-ID: <19990610150134.9646.sada@rr.iij4u.or.jp> (raw)

Hello.

I heared that zsh-3.1.5 failures su function because
it emulates `sh' by first letter `s' of `su'.

How about a patch below.

Thanks !

*** options.c.orig      Mon Jun  7 11:03:16 1999
--- options.c   Mon Jun  7 11:32:17 1999
***************
*** 432,448 ****
  void
  emulate(const char *zsh_name, int fully)
  {
!     char ch = *zsh_name;

!     if (ch == 'r')
!       ch = zsh_name[1];

      /* Work out the new emulation mode */
!     if (ch == 'c')
        emulation = EMULATE_CSH;
!     else if (ch == 'k')
        emulation = EMULATE_KSH;
!     else if (ch == 's' || ch == 'b')
        emulation = EMULATE_SH;
      else
        emulation = EMULATE_ZSH;
--- 432,448 ----
  void
  emulate(const char *zsh_name, int fully)
  {
!     char *name = zsh_name;

!     if (*name == 'r')
!       name++;

      /* Work out the new emulation mode */
!     if (!strcmp (name, "csh"))
        emulation = EMULATE_CSH;
!     else if (!strcmp (name, "ksh"))
        emulation = EMULATE_KSH;
!     else if (!strcmp (name, "sh") || !strcmp (name, "bash"))
        emulation = EMULATE_SH;
      else
        emulation = EMULATE_ZSH;


             reply	other threads:[~1999-06-10 15:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-10 15:01 SADA Kenji [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-06-08  4:58 SADA Kenji
1999-06-11 11:42 ` Peter Stephenson
1999-06-11 14:53   ` Geoff Wing

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19990610150134.9646.sada@rr.iij4u.or.jp \
    --to=sada@rr.iij4u.or.jp \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).