zsh-workers
 help / color / mirror / code / Atom feed
From: Tanaka Akira <akr@jaist.ac.jp>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: `- perl' instead of `- sh'
Date: 29 Dec 1999 05:21:13 +0900	[thread overview]
Message-ID: <rsqhfh2akau.fsf@crane.jaist.ac.jp> (raw)
In-Reply-To: Tanaka Akira's message of "17 Dec 1999 23:53:34 +0900"

In article <rsqr9gllitt.fsf@crane.jaist.ac.jp>,
  Tanaka Akira <akr@jaist.ac.jp> writes:

> On Solaris 7, `- sh -c ...' executes /etc/profile and $HOME/.profile
> and doesn't execute shell commands provided by command line arguments.

9108 is not included in 3.1.6-pws-13.  I guess it's because 9108 uses perl.
So I tried to find more portable way to fix the problem.

This patch uses another scripting language --- zsh.  Unfortunately it
is less portable than perl in usual.  But it is perfectly portable in
this case.

Index: Test/01grammar.ztst
===================================================================
RCS file: /projects/zsh/zsh/Test/01grammar.ztst,v
retrieving revision 1.1.1.3
diff -u -F^( -r1.1.1.3 01grammar.ztst
--- Test/01grammar.ztst	1999/12/23 23:01:55	1.1.1.3
+++ Test/01grammar.ztst	1999/12/28 20:13:58
@@ -50,9 +50,8 @@
 #
 # Tests for `Precommand Modifiers'
 #
-  - sh -c 'echo $0'
+  - $ZTST_testdir/../Src/zsh -fc "[[ \$0 = \"-$ZTST_testdir/../Src/zsh\" ]]"
 0:`-' precommand modifier
->-sh
 
   echo f*
   noglob echo f*
-- 
Tanaka Akira


  reply	other threads:[~1999-12-28 20:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-17 14:53 Tanaka Akira
1999-12-28 20:21 ` Tanaka Akira [this message]
1999-12-29 20:40   ` Peter Stephenson

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=rsqhfh2akau.fsf@crane.jaist.ac.jp \
    --to=akr@jaist.ac.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).