git://git.jankratochvil.net
/
nethome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dfc348c
)
.bashrc: Fix MinGW64 printing "unlimited" on each ulimitme() execution.
author
Jan Kratochvil
<jan@jankratochvil.net>
Mon, 1 Nov 2021 19:50:29 +0000
(20:50 +0100)
committer
Jan Kratochvil
<jan@jankratochvil.net>
Mon, 1 Nov 2021 19:50:29 +0000
(20:50 +0100)
.bashrc
patch
|
blob
|
history
diff --git
a/.bashrc
b/.bashrc
index
9328b48
..
9d70dcf
100644
(file)
--- a/
.bashrc
+++ b/
.bashrc
@@
-258,9
+258,13
@@
export ULIMITME_OPTS=""
for i in "-v 2000000";do
(ulimit $i 2>/dev/null) && ULIMITME_OPTS="$ULIMITME_OPTS $i"
done
for i in "-v 2000000";do
(ulimit $i 2>/dev/null) && ULIMITME_OPTS="$ULIMITME_OPTS $i"
done
+if [ -z "$ULIMITME_OPTS" ];then
+ # MinGW64 would be printing "unlimited" on each ulimitme() execution.
+ ULIMITME_OPTS="-v unlimited"
+fi
# Prevent: ulimit: -m 100000 -d 150000 -v 200000: invalid number
# by forcing our known $IFS value; eval(1) is needed to take $IFS to effect:
# Prevent: ulimit: -m 100000 -d 150000 -v 200000: invalid number
# by forcing our known $IFS value; eval(1) is needed to take $IFS to effect:
-function ulimitme { IFS=" " eval "ulimit $ULIMITME_OPTS"; }
+function ulimitme { IFS=" " eval "ulimit
2>/dev/null
$ULIMITME_OPTS"; }
function finame { find . -false `
awk </dev/null 'BEGIN{ for (i=1;i<ARGC;i++) print " -o -iname *"ARGV[i]"*"; }' "$@"
`; }
function finame { find . -false `
awk </dev/null 'BEGIN{ for (i=1;i<ARGC;i++) print " -o -iname *"ARGV[i]"*"; }' "$@"
`; }