Re: Bash usage: was implicit linkage

2014-10-13 Thread Chris Bannister
On Mon, Oct 13, 2014 at 02:10:11PM +0900, Joel Rees wrote: Which is another way of saying that you want others to have already made the mistakes for you. No it isn't! Ponder why most people take their car to a mechanic for servicing. And you snipped: As long as you recognize

Re: Bash usage: was implicit linkage

2014-10-13 Thread Joel Rees
On Mon, Oct 13, 2014 at 10:53 PM, Chris Bannister cbannis...@slingshot.co.nz wrote: On Mon, Oct 13, 2014 at 02:10:11PM +0900, Joel Rees wrote: Which is another way of saying that you want others to have already made the mistakes for you. No it isn't! Ponder why most people take their

Re: Bash usage: was implicit linkage

2014-10-12 Thread Martin Read
On 12/10/14 04:12, Peter Zoeller wrote: But the nice thing is shell scripting is simplistic easy to learn and understand. I refer the audience to David A. Wheeler's essay[1] on how to handle filenames correctly in shell scripts, and to the bug report that he filed against POSIX.1-2008[2] on

Re: Bash usage: was implicit linkage

2014-10-12 Thread Andrei POPESCU
On Sb, 11 oct 14, 21:40:49, Steve Litt wrote: From my viewpoint, shellscripts were never intended to be big, huge programs. To me, they just glue together commands, and have a few rudimentary branching and looping constructs. Isn't that like buying IKEA furniture, but when you get home you

Re: Bash usage: was implicit linkage

2014-10-12 Thread The Wanderer
On 10/12/2014 at 10:07 AM, Andrei POPESCU wrote: On Sb, 11 oct 14, 21:40:49, Steve Litt wrote: From my viewpoint, shellscripts were never intended to be big, huge programs. To me, they just glue together commands, and have a few rudimentary branching and looping constructs. Isn't that

Re: Bash usage: was implicit linkage

2014-10-12 Thread Andrei POPESCU
On Du, 12 oct 14, 10:30:52, The Wanderer wrote: On 10/12/2014 at 10:07 AM, Andrei POPESCU wrote: Any program that requires additional scripting just to get it running is insufficiently advanced. (you can quote me on that) Part of the tradeoff for power is responsibility - both in

Re: Bash usage: was implicit linkage

2014-10-12 Thread Steve Litt
On Sun, 12 Oct 2014 09:33:43 +0100 Martin Read zen75...@zen.co.uk wrote: On 12/10/14 04:12, Peter Zoeller wrote: But the nice thing is shell scripting is simplistic easy to learn and understand. I refer the audience to David A. Wheeler's essay[1] on how to handle filenames correctly in

Re: Bash usage: was implicit linkage

2014-10-12 Thread The Wanderer
On 10/12/2014 at 01:42 PM, Steve Litt wrote: On Sun, 12 Oct 2014 09:33:43 +0100 Martin Read zen75...@zen.co.uk wrote: On 12/10/14 04:12, Peter Zoeller wrote: But the nice thing is shell scripting is simplistic easy to learn and understand. I refer the audience to David A. Wheeler's

Re: Bash usage: was implicit linkage

2014-10-12 Thread Don Armstrong
On Sun, 12 Oct 2014, Steve Litt wrote: This essay practically screams out for somebody to write a C program that takes an argument of an arbitrary string, finds all files in a directory, and returns a long string with those files separated by the arbitrary string. You seem to be looking for

Re: Bash usage: was implicit linkage

2014-10-12 Thread Miles Fidelman
Andrei POPESCU wrote: On Sb, 11 oct 14, 21:40:49, Steve Litt wrote: From my viewpoint, shellscripts were never intended to be big, huge programs. To me, they just glue together commands, and have a few rudimentary branching and looping constructs. Isn't that like buying IKEA furniture, but

Re: Bash usage: was implicit linkage

2014-10-12 Thread Steve Litt
On Sun, 12 Oct 2014 17:07:01 +0300 Andrei POPESCU andreimpope...@gmail.com wrote: On Sb, 11 oct 14, 21:40:49, Steve Litt wrote: From my viewpoint, shellscripts were never intended to be big, huge programs. To me, they just glue together commands, and have a few rudimentary branching and

Re: Bash usage: was implicit linkage

2014-10-12 Thread Ansgar Burchardt
Don Armstrong d...@debian.org writes: On Sun, 12 Oct 2014, Steve Litt wrote: This essay practically screams out for somebody to write a C program that takes an argument of an arbitrary string, finds all files in a directory, and returns a long string with those files separated by the

Re: Bash usage: was implicit linkage

2014-10-12 Thread Steve Litt
On Sun, 12 Oct 2014 11:16:54 -0700 Don Armstrong d...@debian.org wrote: On Sun, 12 Oct 2014, Steve Litt wrote: This essay practically screams out for somebody to write a C program that takes an argument of an arbitrary string, finds all files in a directory, and returns a long string with

Re: Bash usage: was implicit linkage

2014-10-12 Thread Joel Rees
2014/10/12 23:07 Andrei POPESCU andreimpope...@gmail.com: On Sb, 11 oct 14, 21:40:49, Steve Litt wrote: From my viewpoint, shellscripts were never intended to be big, huge programs. To me, they just glue together commands, and have a few rudimentary branching and looping constructs.

Re: Bash usage: was implicit linkage

2014-10-12 Thread Joel Rees
2014/10/13 2:14 Andrei POPESCU andreimpope...@gmail.com: On Du, 12 oct 14, 10:30:52, The Wanderer wrote: On 10/12/2014 at 10:07 AM, Andrei POPESCU wrote: Any program that requires additional scripting just to get it running is insufficiently advanced. (you can quote me on that)

Re: Bash usage: was implicit linkage

2014-10-12 Thread Joel Rees
2014/10/13 2:45 Steve Litt sl...@troubleshooters.com: On Sun, 12 Oct 2014 09:33:43 +0100 Martin Read zen75...@zen.co.uk wrote: On 12/10/14 04:12, Peter Zoeller wrote: But the nice thing is shell scripting is simplistic easy to learn and understand. I refer the audience to David A.

Re: Bash usage: was implicit linkage

2014-10-12 Thread Chris Bannister
On Mon, Oct 13, 2014 at 07:53:03AM +0900, Joel Rees wrote: 2014/10/13 2:14 Andrei POPESCU andreimpope...@gmail.com: On Du, 12 oct 14, 10:30:52, The Wanderer wrote: On 10/12/2014 at 10:07 AM, Andrei POPESCU wrote: Any program that requires additional scripting just to get it running

Re: Bash usage: was implicit linkage

2014-10-12 Thread Joel Rees
On Mon, Oct 13, 2014 at 1:38 PM, Chris Bannister cbannis...@slingshot.co.nz wrote: On Mon, Oct 13, 2014 at 07:53:03AM +0900, Joel Rees wrote: 2014/10/13 2:14 Andrei POPESCU andreimpope...@gmail.com: On Du, 12 oct 14, 10:30:52, The Wanderer wrote: On 10/12/2014 at 10:07 AM, Andrei POPESCU

Bash usage: was implicit linkage

2014-10-11 Thread Steve Litt
On Sat, 11 Oct 2014 19:05:19 -0400 Doug dmcgarr...@optonline.net wrote: On 10/11/2014 05:28 PM, Steve Litt wrote: On Sat, 11 Oct 2014 21:21:14 +0300 Daemontools runscripts are incredibly simple shellscripts, that I'm sure you could write no sweat except in very wierd edge cases. Here's

Re: Bash usage: was implicit linkage

2014-10-11 Thread Chris Bannister
On Sat, Oct 11, 2014 at 09:40:49PM -0400, Steve Litt wrote: Now that I've said that, you can accomplish some pretty incredible things by gluing a few commands together. I wrote the better half of a http log evaluation program using a shellscript gluing together grep, cut, and awk, and piped

Re: Bash usage: was implicit linkage

2014-10-11 Thread Peter Zoeller
Hi Steve: I agree that shell scripts are simplistic and not meant for fancy programs although it could be done, just not productive. But the nice thing is shell scripting is simplistic easy to learn and understand. Sure beats the days when I wrote code in Assembler, Cobol, Fortran, PL1,