Re: ulimit, bash and ash
From: Paul Morgan (paulswm_at_earthlink.net)
Date: 01/30/04
- Previous message: raffaella.biaggi_at_stud.unibas.ch: "Mail Transaction Failed"
- In reply to: Hugo van der Merwe: "ulimit, bash and ash"
- Next in thread: Paul Morgan: "Re: ulimit, bash and ash"
- Reply: Paul Morgan: "Re: ulimit, bash and ash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: debian-user@lists.debian.org Date: Fri, 30 Jan 2004 11:09:03 -0500
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.
--
....................paul
It is important to realize that any lock can be picked with a big
enough hammer.
-- Sun System & Network Admin manual
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- Previous message: raffaella.biaggi_at_stud.unibas.ch: "Mail Transaction Failed"
- In reply to: Hugo van der Merwe: "ulimit, bash and ash"
- Next in thread: Paul Morgan: "Re: ulimit, bash and ash"
- Reply: Paul Morgan: "Re: ulimit, bash and ash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|