~emersion/mrsh

8f4620540cfab66007c308bf39bc5ba78fc1d72c — emersion 1 year, 8 months ago 1460f32 ulimit-print
test: make ulimit.sh POSIX-compliant
1 files changed, 3 insertions(+), 5 deletions(-)

M test/ulimit.sh
M test/ulimit.sh => test/ulimit.sh +3 -5
@@ 1,9 1,7 @@
#!/bin/sh

set -e
#!/bin/sh -e

mrsh_limits=`ulimit`
[ $mrsh_limits == "unlimited" ]
[ "$mrsh_limits" = "unlimited" ]
if [ -e /proc/self/limits ]
then
	grep "Max file size" /proc/self/limits | grep "unlimited"


@@ 12,7 10,7 @@ fi
ulimit -f 100

mrsh_limits=`ulimit`
[ $mrsh_limits -eq 100 ]
[ "$mrsh_limits" -eq 100 ]
if [ -e /proc/self/limits ]
then
	grep "Max file size" /proc/self/limits | grep 51200