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

-M option for ulimit



-----BEGIN PGP SIGNED MESSAGE-----

The patch below adds the -M option to ulimit, and fixes numerous bugs
in it.  It turned out quite big (11K), so I've compressed it.  The bug
fixes I remember are:

o Don't try to scale output that should say "unlimited" (it was
  printing garbage).

o Notice if more than one limit is specified at once.

o Accept "ulimit -H" to list all hard limits.

o Accept -S as a synonym for -f as bash does.  The option was accepted,
  but treated as a non-existent resource.  Also document it.

It would be nice to rewrite ulimit to accept multiple resources the way
bash ulimit does, but I think this is the appropriate state to put
ulimit into now.  Maybe a couple of versions hence.

 -zefram

begin 644 ulimit-M.gz
M'XL("+]'\S   W5L:6UI="U- .U:>7/;-A;_V_D4L#*M)8>2)=_'9KN.X]2:
MVHEK*=UI$X\'(D&)8Q)4"%*N<GSWO@> EP3*1^+L9&8YDU@D\$Z\]\/#L;JZ
M2CJMO:7.WM[V6KNSUMXEZYW]C?7]K;TGS6:3]")[;9!X?NSQEIWUZK1)>W-_
M:V-_:^?):OG!=[*QT]ZR-G:VUXG\1.3S\89&G-.@#O^816H\C F=4,^G Y^1
MD)-XY DBIB)F0<TBK]^>GEJDW3C0Y!&+DXB3#KX_9;Y@3Y;E=X_'T"8L,J*1
M@XU/FO([OI+G)!R+=RLG*Y<IF[55(IC/[!C$,2+&S/9<CSG$]P(O)JMK*5>7
MU"4I7;DDGS^39?GRGY7+!G18 B9-"JQC#]0&+SF>&/MT2JCO2[:2F5#<EI#5
M*HV&DP;YA.]F7Q#HD02, UG$/B1>!#I1-V812"IY0W/(W0$?OA!T2,[>#2-2
M!Z> _>T#] [Y%[DX[9Y=O8;_NOV>_/;LF;1E:1R!"Q.I<CUSY)R@MA*DW2/%
M93Z*M5N4Q LIX^KH_.V!L;=KZOVJU_WKV-S?,?5_>=@_-'<7INZ]_N'1;^;^
MME'Y-Q?',M"@G\/<]/-%KV?D$9AX0&>4^)0P[D!/B)F\ 4-CCOO9\=GIFZ/?
MC!)\DP1-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