On Tue, 29 Jul 2003, McKown, John wrote:
> > -----Original Message-----
> > From: John Summerfield [mailto:[EMAIL PROTECTED]
> > Sent: Monday, July 28, 2003 6:08 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Stripping trailing blanks?
> >
> >
> > On Mon, 28 Jul 2003, McKown, John wrote:
> >
>
> <snip>
>
> > > I invoke it in a subdirectory with:
> > >
> > > for i in *;do ../nonum.sh $i $i.ext;done
> > >
> >
> > A lot of people use the dot-sh suffix. I presume some of them
> > think it's
> > needed.
> >
> <snip>
>
> I know that UNIX does not require suffixes to tell it if a file is
> executable and whatnot. I just do that out of old habit, so that I know what
> all the shell scripts are without needing to actually do a "file" command or
> attempt to look at them. The same with my Perl stuff ending in ".pl".
Don't feel I was aiming specifically at you, you just provoked me enough
to comment. As I said, there's a lot of people do it:
[EMAIL PROTECTED]:~/cvs$ locate '*.sh' | wc -l
458
[EMAIL PROTECTED]:~/cvs$ locate '*.pl' | wc -l
1331
[EMAIL PROTECTED]:~/cvs$
A small number of the dot-sh scripts here are because of the (odd) way
Debian processes things in /etc/init.d.
Mostly, my own stuff I either know or don't care: if I want to change
a Perl or Shell script, gvim is the right tool.
If it's in /usr/bin and doesn't work, if it's a script I maybe can fix
it.
--
Cheers
John.
Join the "Linux Support by Small Businesses" list at
http://mail.computerdatasafe.com.au/mailman/listinfo/lssb
Copyright John Summerfield. Reproduction prohibited.