[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [PATCH] shell: tweak latter: apply to all operators
From:       Steffen Nurpmeso <steffen () sdaoden ! eu>
Date:       2022-08-05 20:49:40
Message-ID: 4ff570add066cb91596361cd2d200cf758bf3bf6.1659731750.git.steffen () sdaoden ! eu
[Download RAW message or body]

---
Arriba Arriba Andale Andale!

P.S.: i also have written a graylister for postfix, in C.
94003 bytes, works just smooth for months; is a package in Alpine,
and has a focus-sender mode that i now use and that is in no way
worse than long delays.  In fact better to me, because i also have
private correspondance from the server, and many german companies
and such use pressing service providers which hammer you from (the
original and) multiple (other) IPs if the first mail is delayed.

	4-mask=24
	6-mask=64
	delay-max=300
	delay-min=0
	delay-progressive
	gc-rebalance=3
	gc-timeout=10080
	limit=242000
	limit-delay=221000
	server-queue=64
	#server-timeout=30
	  server-timeout=0
	store-path=/var/lib/pg

  # ll /var/lib/|grep pg
  drwxr-x---    2 smtpd    smtpd         4096 Aug  5 21:25 pg/

	focus-sender
	# ! --focus-sender
	  #count=2
	count=1
	msg-allow=permit
	msg-block=REJECT
	msg-defer=DEFER 4.2.0 Service temporarily faded to Gray

	allow .alpinelinux.org
	allow .osuosl.org
	allow sdaoden.eu

Just in case; i drive it with 0.00 CPU time per week in less than
a megabyte of RAM; it could make the box less busy.

 shell/shexp-arith.h | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/shell/shexp-arith.h b/shell/shexp-arith.h
index 2fb867f1c2..d4b723b5ec 100644
--- a/shell/shexp-arith.h
+++ b/shell/shexp-arith.h
@@ -696,11 +696,10 @@ junapre:
                /* Is this a right-associative operation? */
                else if(lprec < prec){
                   /* There is a special case though: if we are about to delay
-                   * a comma sequence, and the LHV is a variable, then we need
-                   * to expand that immediately, in order to correctly get
-                   *    I1=I2=10 I2=3; echo $(( I1, I2 )) */
-                  if(op == a_SHEXP_ARITH_OP_COMMA &&
-                        sasp->sas_nums_top[-1].sav_var != NIL &&
+                   * and the LHV is a variable, then we need to expand that
+                   * immediately, in order to correctly get
+                   *    I1=I2=10 I2=3; echo $(( I1 [,+..] I2 )) */
+                  if(sasp->sas_nums_top[-1].sav_var != NIL &&
                         !a_shexp__arith_val_eval(self,
                            &sasp->sas_nums_top[-1]))
                      goto jleave;
-- 
2.37.1


--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic