X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=.bashrc;h=9d70dcfc2a2c8ad8556521388456455f1c6e83ab;hb=814eb6428dfeda64326f695be75ab0186202d7da;hp=9328b480d8b0cf7d22da5f7f3ba3af160ac92fef;hpb=dfc348cf1c073095e3af230e03c07d330fdee4ad;p=nethome.git diff --git a/.bashrc b/.bashrc index 9328b48..9d70dcf 100644 --- 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 +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: -function ulimitme { IFS=" " eval "ulimit $ULIMITME_OPTS"; } +function ulimitme { IFS=" " eval "ulimit 2>/dev/null $ULIMITME_OPTS"; } function finame { find . -false ` awk