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

Re: PATCH: Re: Compsys and KSH_AUTOLOAD



Bart wrote:
> 
> } So I really don't see much harm in adding -m to declare's options.
> } Or do you disagree?
> 
> No, I don't see any harm.  I think that means you should reverse the
> sense of the test rather than remove the test, though.

Okay, this patch reverses the sense of the test.

Index: Test/B02typeset.ztst
===================================================================
RCS file: /cvsroot/zsh/zsh/Test/B02typeset.ztst,v
retrieving revision 1.5
diff -u -r1.5 B02typeset.ztst
--- Test/B02typeset.ztst	25 Sep 2003 09:50:25 -0000	1.5
+++ Test/B02typeset.ztst	20 Apr 2004 09:57:03 -0000
@@ -3,7 +3,7 @@
 # everything that follows is processed by an "eval" within a function.
 
 # Equivalences:
-#  declare	typeset			but declare does not accept -m
+#  declare	typeset
 #  export	typeset -x		and typeset -x implies -g
 #  float	typeset -E
 #  functions	typeset -f
@@ -100,9 +100,9 @@
 >local l o c a l
 >scalar a r r a y
 
- declare +m
-1:Differences of declare and typeset
-?(eval):1: bad option: -m
+ declare +m scalar
+0:declare previously lacked -m/+m options
+>scalar
 
  scope10
  print $outer



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