Re: Need help correcting this Bash function

From: Tavis Ormandy (taviso_at_sdf.lonestar.org)
Date: 10/09/04


Date: 9 Oct 2004 14:51:55 GMT

On 2004-10-09, Ed Morton <morton@lsupcaemnt.com> wrote:
> He appears to think, as I do, that we're discussing whether or not to
> use bash-sepcific constructs when the equivalent generally-available
> constructs could be used for about the same amount of code and
> efficiency. If that's not what's being discussed, please enlighten us!

answered elsewhere.

> Because there are plenty of people out there running ksh88 and other
> older shells. I use ksh88 because I often have to run scripts on
> machines that don't have bash or other more recent shells installed and,
> since I don't own or administer those machines, I don't want to waste my
> time installing them or correcting my scripts for the brief period when
> I'm using those machines.

So, you have an outdated shell, and want everybody's scripts to support
it?

How thoughtful of you.

> As for the OP asking for help with a "bash script" - that doesn't mean
> he wants or should only get a bash-specific solution. Plenty of people
> post questions here about one tool only to be told that either:

So, how would I ask you for your opinion on something bash related?

"Ed, what do you think of the new brace expansion features in
 ____***!!!!! ->>>>> BASH <<<<- |!!!!***____"

I mean, how clear does he have to make it?

> a) they're using the tool the wrong way, or
> b) the correct solution is to use a different tool.

Wow, how patronising.

>> Well then, you're lucky that you only ever have to do simple operations.
>
> I very much doubt that's the case, but I suspect that most people would
> use awk or perl for most complex operations anyway.
>

Then you'ld be wrong.

-- 
-------------------------------------
taviso@sdf.lonestar.org | finger me for my gpg key.
-------------------------------------------------------


Relevant Pages

  • Summary: Changes to mv in upgrade from 5.1 to 5.1b?
    ... Tim was able to duplicate this bug on his own machines testing between 5.1 ... As far as whether this was an intentional change on HP's part or a bug, ... Some of our scripts are now failing with the "mv" command with an error I ...
    (Tru64-UNIX-Managers)
  • Re: Mass Machine Login
    ... I once looked after a lab of UNIX machines. ... can send you my scripts. ... has 75 computers all on the same vlan and we would like to login ... >Computer Emergency Response Teams, and Digital Investigations. ...
    (Security-Basics)
  • Re: ASH shell - is this a bug??
    ... >> I've been testing various shells under Linux to see how ... >> some scripts and shell commands work. ... > The behaviour is undefined in the POSIX standard. ...
    (comp.unix.shell)
  • Use Group Policy to assign computer startup scripts for 2007 Office deployment
    ... TechNet article to accomplish it using startup scripts, ... It is supposed to run the batch file listed in the ... article from Computer Configuration Windows Settings Scripts Shutdown. ... XP machines. ...
    (microsoft.public.windows.group_policy)
  • [SLE] while reading thru a prior email , discussing merits of linux vs that other companys software
    ... Since not reinventing the wheel seems to be a Perl mantra, ... I just started a book on shell scripts for various shells, ... guess, where bash, for instance, expects to find such things. ...
    (SuSE)