Re: bash, dash and sh

2015-04-23 Thread jeremy bentham
On Wed, Apr 22, 2015 at 11:43:17PM -0600, Glenn English wrote: On Apr 22, 2015, at 9:22 PM, Bob Proulx b...@proulx.com wrote: jeremy bentham wrote: I am finally abandonning my fifteen-year-old computer and Lenny for a six (?) year old used Gateway 2802 (as a Bad Consumer (tm) I never

Re: bash, dash and sh

2015-04-23 Thread John Hasler
jeremy bentham writes: I probably wasn't clear enough in my Real Question, which is, will doing this--what I really want--Seriously Break Something? Lots of stuff uses /bin/sh. Not likely. When called as sh Bash goes into a compatibility mode. -- John Hasler jhas...@newsguy.com Elmwood, WI

Re: bash, dash and sh

2015-04-23 Thread Bob Proulx
Glenn English wrote: May I suggest just changing the pointer from Dash back to Bash. You sound like somebody that stays with a release for a while, and this is would be a lot less work than editing all those scripts. But trivial to change those scripts. Test it this way: find . -type f

Re: bash, dash and sh

2015-04-23 Thread Peter Viskup
Hi Jeremy, not sure whether you are aware of checkbashisms tool (part of devscripts package). That could help you to learn how to write POSIX compliant scripts. Others helped you much more. :-) On Thu, Apr 23, 2015 at 5:02 AM, jeremy bentham d...@eskimo.com wrote: I am finally abandonning my

Re: bash, dash and sh

2015-04-22 Thread Bob Proulx
jeremy bentham wrote: I am finally abandonning my fifteen-year-old computer and Lenny for a six (?) year old used Gateway 2802 (as a Bad Consumer (tm) I never buy anything new if I can avoid it) and, right now, it has a start at Wheezy on it. Congratulations on your recent upgrade. I am sure

bash, dash and sh

2015-04-22 Thread jeremy bentham
I am finally abandonning my fifteen-year-old computer and Lenny for a six (?) year old used Gateway 2802 (as a Bad Consumer (tm) I never buy anything new if I can avoid it) and, right now, it has a start at Wheezy on it. I happened to read on another list, and then verified for myself, that

Re: bash, dash and sh

2015-04-22 Thread David Christensen
On 04/22/2015 08:02 PM, jeremy bentham wrote: I have a bunch of scripts ... with the first line #!/bin/sh that use bashisms, ... How about changing the shebang line of the scripts with Perl?

Re: bash, dash and sh

2015-04-22 Thread Glenn English
On Apr 22, 2015, at 9:22 PM, Bob Proulx b...@proulx.com wrote: jeremy bentham wrote: I am finally abandonning my fifteen-year-old computer and Lenny for a six (?) year old used Gateway 2802 (as a Bad Consumer (tm) I never buy anything new if I can avoid it) and, right now, it has a start at