Re: ulimit, bash and ash
On Fri, 30 Jan 2004 16:40:30 +0200, Hugo van der Merwe wrote:
> I just noticed that in bash "ulimit -u" is the same as ash's
> "ulimit -p", while bash has another meaning for "ulimit -p" ... This
> makes writing scripts quite difficult, I'd say you cannot then use
> ulimit in /bin/sh scripts, only in scripts specifically for bash or
> Just a thought, posted in case anyone care to comment.
If that's the case, you could always either (for example):
Test the value of the SHELL environment variable and set the options as
Put #!/bin/bash or whatever as the first line in your shell script to
ensure it gets executed by the appropriate shell.
It is important to realize that any lock can be picked with a big
-- Sun System & Network Admin manual