Re: Stoopid script failure

2010-02-07 Thread Mikkel
On 02/07/2010 03:02 PM, Patrick O'Callaghan wrote: > > I completely agree, but in this case I wanted a highly special-purpose > script that would only ever be run in a specific directory, and didn't > overload any system command. > > I decided just to put it in my ~/bin, where it works fine. > >

Re: Stoopid script failure

2010-02-07 Thread Patrick O'Callaghan
On Sun, 2010-02-07 at 13:54 -0700, Greg Woods wrote: > On Sat, 2010-02-06 at 23:24 +0800, Ed Greshko wrote: > > have . in your > > $PATH. I recall somewhere, sometime a warning against thatbut > I've > > ignored it for years and haven't had a problem. I even forgot what > the > > warning was

Re: Stoopid script failure

2010-02-07 Thread Greg Woods
On Sat, 2010-02-06 at 23:24 +0800, Ed Greshko wrote: > have . in your > $PATH. I recall somewhere, sometime a warning against thatbut I've > ignored it for years and haven't had a problem. I even forgot what the > warning was all about. Generally it's not a good thing to have a different co

Re: Stoopid script failure

2010-02-06 Thread n2xssvv.g02gfr12930
On 02/06/2010 03:44 PM, Patrick O'Callaghan wrote: > On Sat, 2010-02-06 at 09:25 -0600, inode0 wrote: >> On Sat, Feb 6, 2010 at 9:03 AM, Patrick O'Callaghan >> wrote: >>> Can anyone explain why this doesn't work? I've been writing shell >>> scripts on and off for several decades and I can't see wh

Re: Stoopid script failure

2010-02-06 Thread Paolo Galtieri
On 02/06/2010 08:34 AM, Ed Greshko wrote: > Ed Greshko wrote: > >> Patrick O'Callaghan wrote: >> >> >>> Can anyone explain why this doesn't work? I've been writing shell >>> scripts on and off for several decades and I can't see what's going on >>> here. Is senility setting it? >>> >>> $

Re: Stoopid script failure

2010-02-06 Thread Patrick O'Callaghan
On Sat, 2010-02-06 at 09:25 -0600, inode0 wrote: > On Sat, Feb 6, 2010 at 9:03 AM, Patrick O'Callaghan > wrote: > > Can anyone explain why this doesn't work? I've been writing shell > > scripts on and off for several decades and I can't see what's going on > > here. Is senility setting it? > > > >

Re: Stoopid script failure

2010-02-06 Thread Patrick O'Callaghan
On Sat, 2010-02-06 at 10:26 -0500, Todd Zullinger wrote: > Patrick O'Callaghan wrote: > > Can anyone explain why this doesn't work? I've been writing shell > > scripts on and off for several decades and I can't see what's going on > > here. Is senility setting it? > > It may be, but it brings with

Re: Stoopid script failure

2010-02-06 Thread Ed Greshko
Todd Zullinger wrote: > Patrick O'Callaghan wrote: > >> Can anyone explain why this doesn't work? I've been writing shell >> scripts on and off for several decades and I can't see what's going on >> here. Is senility setting it? >> > > It may be, but it brings with it many benefits -- like

Re: Stoopid script failure

2010-02-06 Thread Ed Greshko
Ed Greshko wrote: > Patrick O'Callaghan wrote: > >> Can anyone explain why this doesn't work? I've been writing shell >> scripts on and off for several decades and I can't see what's going on >> here. Is senility setting it? >> >> $ cat > tst >> #!/bin/sh >> echo foo >> $ chmod +x tst >> $ ls -l

Re: Stoopid script failure

2010-02-06 Thread Todd Zullinger
Patrick O'Callaghan wrote: > Can anyone explain why this doesn't work? I've been writing shell > scripts on and off for several decades and I can't see what's going on > here. Is senility setting it? It may be, but it brings with it many benefits -- like being able to eat dessert twice because you

Re: Stoopid script failure

2010-02-06 Thread inode0
On Sat, Feb 6, 2010 at 9:03 AM, Patrick O'Callaghan wrote: > Can anyone explain why this doesn't work? I've been writing shell > scripts on and off for several decades and I can't see what's going on > here. Is senility setting it? > > $ cat > tst > #!/bin/sh > echo foo > $ chmod +x tst > $ ls -l

Re: Stoopid script failure

2010-02-06 Thread Ed Greshko
Patrick O'Callaghan wrote: > Can anyone explain why this doesn't work? I've been writing shell > scripts on and off for several decades and I can't see what's going on > here. Is senility setting it? > > $ cat > tst > #!/bin/sh > echo foo > $ chmod +x tst > $ ls -l tst > -rwxrwxr-x 1 poc poc 19 201

Re: Stoopid script failure

2010-02-06 Thread Waleed Harbi
*Try: #./tst #file tst tst: Bourne shell script text executable *-- Best Wishes, Waleed Harbi Dream | Do | Be On Sat, Feb 6, 2010 at 6:03 PM, Patrick O'Callaghan wrote: > Can anyone explain why this doesn't work? I've been writing shell > scripts on and off for severa

Stoopid script failure

2010-02-06 Thread Patrick O'Callaghan
Can anyone explain why this doesn't work? I've been writing shell scripts on and off for several decades and I can't see what's going on here. Is senility setting it? $ cat > tst #!/bin/sh echo foo $ chmod +x tst $ ls -l tst -rwxrwxr-x 1 poc poc 19 2010-02-06 10:22 tst $ type tst tst is ./tst $ ts