[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ulimit, bash and ash

On Fri, 30 Jan 2004 11:08:59 -0500, Paul Morgan wrote:

> 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
>> ash.
>> 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
> appropriate
> or
> Put #!/bin/bash or whatever as the first line in your shell script to
> ensure it gets executed by the appropriate shell.

Sorry, forget that second one, I'm having a "dumb" day.  But testing the
SHELL variable is an idea.


It is important to realize that any lock can be picked with a big
enough hammer.
               -- Sun System & Network Admin manual

Reply to: