Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: `- perl' instead of `- sh'



In article <rsqr9gllitt.fsf@xxxxxxxxxxxxxxxxx>,
  Tanaka Akira <akr@xxxxxxxxxxx> 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



Messages sorted by: Reverse Date, Date, Thread, Author