Re: ulimit, bash and ash

From: Paul Morgan (paulswm_at_earthlink.net)
Date: 01/30/04

  • Next message: Ben Yau: "RE: Email client programs"
    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
    

  • Next message: Ben Yau: "RE: Email client programs"

    Relevant Pages

    • Re: ulimit, bash and ash
      ... >> makes writing scripts quite difficult, I'd say you cannot then use ... >> ash. ... posted in case anyone care to comment. ... > ensure it gets executed by the appropriate shell. ...
      (Debian-User)
    • Re: listing variable name as well as value
      ... writing scripts in for the past two years. ... im sure the borne shell is better, however learning it right now won't ... some of the errors barnett mentions don't occur (at ...
      (comp.unix.shell)
    • Re: OT: Good Linux script book ?
      ... that covers writing scripts? ... Keep in mind that shell makes a great wrapper for starting other ... If a perl program already exists ... legacy unix utility programs that you'll see used in shell ...
      (Fedora)
    • Re: script to compare two floating point numbers or expressions
      ... I often have to compare ... > two values when writing scripts and one or both of these values might ... I am assuming the bash shell. ... In zsh: ...
      (comp.unix.shell)