[Jprogramming] Example bash shell scripts using J 7.01

David Ward Lambert b49P23TIvg at stny.rr.com
Fri Sep 30 09:58:48 HKT 2011


On Fri, 2011-09-30 at 06:18 +0800, programming-request at jsoftware.com
wrote:
> Date: Fri, 30 Sep 2011 09:22:09 +1300
> From: Ric Sherlock <tikkanz at gmail.com>
> Subject: Re: [Jprogramming] Example bash shell scripts using J 7.01
> To: Programming forum <programming at jsoftware.com>
> Message-ID:
>         <CAOoUVu80K1zQ3aN=uJ4LrNfke4tJvWOBUC_9Z_xg7FpQBY5mFQ at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Not sure if you after bash scripts that run J or hashbang scripts?
> 
> I've only recently started working mostly in Linux and with bash.
> Here is an example of a hashbang script that I've created recently -
> There are probably better ways to handle errors, I'd be interested in
> alternative approaches and any other tips & tricks too.  Note that jc
> is an alias to jconsole and that I've changed the default install path
> from j64-701 to j64_701 in order to prevent J errors while executing
> 
> 

Oh-_-_-I seem to have trouble distinguishing _ from - .  I get it now.
In this context jc is most likely a link, not an alias.  Alias has a
different meaning in bash.  As for my post, "bigger hammer" exec is the
same hammer except that the first line of script needn't be
#! /path/program



More information about the Programming mailing list