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

links



This is hardly a bug, but it's a compatibility problem, at least on
the SGIs here: zsh only recognises two of the three ways that
/bin/test does for testing for a link (what's more, the most obvious
one is missing).

*** Doc/zshmisc.1.lnk	Tue Nov 21 06:39:57 1995
--- Doc/zshmisc.1	Tue Dec  5 17:03:55 1995
***************
*** 920,925 ****
--- 920,930 ----
  .I file
  exists and has its sticky bit set.
  .TP
+ \fB\-l\fP \fIfile\fP
+ true if
+ .I file
+ exists and is a symbolic link.
+ .TP
  \fB\-n\fP \fIstring\fP
  true if length of
  .I string
*** Src/cond.c.lnk	Tue Nov 21 06:39:16 1995
--- Src/cond.c	Tue Dec  5 17:03:06 1995
***************
*** 101,106 ****
--- 101,107 ----
      case 'z':
  	return (!strlen(c->left));
      case 'h':
+     case 'l':
      case 'L':
  	return (S_ISLNK(dolstat(c->left)));
      case 'O':
*** Src/parse.c.lnk	Tue Nov 21 06:39:28 1995
--- Src/parse.c	Tue Dec  5 17:07:02 1995
***************
*** 1071,1077 ****
  	    YYERROR;
      s1 = tokstr;
      if (condlex == testlex)
! 	dble = (*s1 == '-' && strspn(s1+1, "abcdefghknoprstuwxzLOGS") == 1
  		  && !s1[2]);
      condlex();
      if (tok == INANG || tok == OUTANG) {
--- 1071,1077 ----
  	    YYERROR;
      s1 = tokstr;
      if (condlex == testlex)
! 	dble = (*s1 == '-' && strspn(s1+1, "abcdefghklnoprstuwxzLOGS") == 1
  		  && !s1[2]);
      condlex();
      if (tok == INANG || tok == OUTANG) {

-- 
Peter Stephenson <pws@xxxxxx>       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.



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