<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 18, 2023 at 10:11 AM Rob Landley <<a href="mailto:rob@landley.net">rob@landley.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 5/17/23 12:40, enh wrote:<br>
> So... display, change, display what you changed it to? (Except you know what you<br>
> changed it to, there's no deltas, so it's just... reading back what you wrote to<br>
> confirm it took?)<br>
> <br>
> yeah, exactly. (your later "what if there's a hard limit in the way?" point is a<br>
> non-testing example where you might want to do that.)<br>
<br>
Fetching it back and printing "Warning: -a capped at hard limit %lld" if they<br>
don't match might be a better approach? (Could not set to requested value, print<br>
warning to stderr.)<br></blockquote><div><br></div><div>yeah, that would probably be better for everyone.</div><div><br></div><div>(i didn't try a debian codesearch to see if anyone's using ulimit in scripts.)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Again, probably an "ask chet". (Probably tomorrow, still recovering from travel.<br>
International flights have gotten a bit less comfortable since pre-pandemic<br>
times, which is saying something...)<br>
<br>
Rob<br>
</blockquote></div></div>