Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15273
| Path | csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail |
|---|---|
| From | L A Walsh <bash@tlinx.org> |
| Newsgroups | gnu.bash.bug |
| Subject | ulimit call lists invalid options |
| Date | Mon, 29 Jul 2019 19:57:39 -0700 |
| Lines | 28 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.218.1564455468.1985.bug-bash@gnu.org> (permalink) |
| References | <5D3FB223.5000601@tlinx.org> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | usenet.stanford.edu 1564455469 9085 209.51.188.17 (30 Jul 2019 02:57:49 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | bug-bash <bug-bash@gnu.org> |
| Envelope-to | bug-bash@gnu.org |
| User-Agent | Thunderbird |
| X-detected-operating-system | by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] |
| X-Received-From | 173.164.175.65 |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.23 |
| Precedence | list |
| List-Id | Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <https://lists.gnu.org/archive/html/bug-bash> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <5D3FB223.5000601@tlinx.org> |
| Xref | csiph.com gnu.bash.bug:15273 |
Show key headers only | View raw
in bash 4.4.12,
giving an invalid option to ulimit gives a usage:
ulimit: usage: ulimit [-SHabcdefiklmnpqrstuvxPT] [limit]
-SH are for Soft/Hard, so they don't count and -a is for all,
so skipping the first 4, the rest:
but the rest:
ops=$(ulimit -h |& perl -ne 'm{\[([^\]]++)\]} && print "$1\n"')
ops=${ops:4}
echo ops=$ops
for ((i=0; i<${#ops};++i));do
op=${ops:i:1}
out=$(echo "-$op: $(ulimit -$op 2>&1)")
((${#out}>30)) && echo "$out"
done
----
bcdefiklmnpqrstuvxPT
-b: -bash: ulimit: -b: invalid option
ulimit: usage: ulimit [-SHabcdefiklmnpqrstuvxPT] [limit]
-k: -bash: ulimit: -k: invalid option
ulimit: usage: ulimit [-SHabcdefiklmnpqrstuvxPT] [limit]
-P: -bash: ulimit: -P: invalid option
ulimit: usage: ulimit [-SHabcdefiklmnpqrstuvxPT] [limit]
-T: -bash: ulimit: -T: invalid option
ulimit: usage: ulimit [-SHabcdefiklmnpqrstuvxPT] [limit]
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
ulimit call lists invalid options L A Walsh <bash@tlinx.org> - 2019-07-29 19:57 -0700
csiph-web