From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21599 invoked from network); 17 Dec 1999 14:53:54 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 17 Dec 1999 14:53:54 -0000 Received: (qmail 10611 invoked by alias); 17 Dec 1999 14:53:42 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9108 Received: (qmail 10604 invoked from network); 17 Dec 1999 14:53:40 -0000 To: zsh-workers@sunsite.auc.dk Subject: PATCH: `- perl' instead of `- sh' MIME-Version: 1.0 (generated by AKEMI 1.13.2 - =?ISO-2022-JP?B?Ig==?= =?ISO-2022-JP?B?GyRCQTA0Y0s8GyhCIg==?=) Content-Type: text/plain; charset=US-ASCII From: Tanaka Akira Date: 17 Dec 1999 23:53:34 +0900 Message-ID: User-Agent: Chao-gnus/6.12.5 AKEMI/1.13.2 (=?ISO-2022-JP?B?GyRCQTAbKEI=?= =?ISO-2022-JP?B?GyRCNGNLPBsoQg==?=) FLAM-DOODLE/1.12.6 (=?ISO-2022-JP?B?GyRCM3cbKEI=?= 10R4.0/5.0) Emacs/20.4 (sparc-sun-solaris2.6) MULE/4.0 (HANANOEN) On Solaris 7, `- sh -c ...' executes /etc/profile and $HOME/.profile and doesn't execute shell commands provided by command line arguments. | Z:akr@is27e1u11% make check | cd Test ; gmake check | gmake[1]: Entering directory `/space/akr/zsh/zsh-main-trunc/Test' | for f in *.ztst; do \ | ../Src/zsh -f ztst.zsh $f; \ | done | *** /tmp/zsh.ztst.out.26274 Fri Dec 17 23:41:45 1999 | --- /tmp/zsh.ztst.tout.26274 Fri Dec 17 23:41:45 1999 | *************** | *** 1 **** | ! -sh | --- 1,3 ---- | ! Sun Microsystems Inc. SunOS 5.7 Generic October 1998 | ! You have mail. | ! akr's .profile is executed. | Test 01grammar.ztst failed: output differs from expected as shown above for: | - sh -c 'echo $0' | Was testing: `-' precommand modifier | 01grammar.ztst: test failed. | 02alias.ztst: all tests successful. | 03quoting.ztst: all tests successful. | 50cd.ztst: all tests successful. | gmake[1]: Leaving directory `/space/akr/zsh/zsh-main-trunc/Test' | Z:akr@is27e1u11% I modified the test using perl. Although there are hosts which perl is not installed, it is less dangerous than sh, I think. Index: Test/01grammar.ztst =================================================================== RCS file: /projects/zsh/zsh/Test/01grammar.ztst,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 01grammar.ztst --- Test/01grammar.ztst 1999/12/13 19:06:59 1.1.1.1 +++ Test/01grammar.ztst 1999/12/17 14:39:09 @@ -50,9 +50,9 @@ # # Tests for `Precommand Modifiers' # - - sh -c 'echo $0' + - perl -e 'print "$^X\n"' 0:`-' precommand modifier ->-sh +>-perl echo f* noglob echo f* -- Tanaka Akira