Re: for; do; done regression ?

2011-01-10 Thread Jan Schampera
Marc Herbert wrote: seq is not exactly Linux-only but GNU-only. GNU-specific versus bash-specific, which is worse? I'd say it depends... on which mailing-list you post :-) I'd say a script interpreted by the GNU shell must not rely blindly on GNU tools being installed or on running on a GNU

Re: 'help set' missing '--'

2011-01-10 Thread Jan Schampera
Dennis Williamson wrote: I think this distinction from the man page is what's missing in the help: > [...] Exactly. Thanks for pointing it out, I thought it was clear :) -- Be conservative in what you do, be liberal in what you accept from others. - jbp, master of the net, in RFC793

Re: 'help set' missing '--'

2011-01-10 Thread Jan Schampera
Greg Wooledge wrote: Or: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...] More: set [-abefhkmnptuvxBCHP] [-o option-name] [-] [--] [arg ...] Plus: Describe '--' the same way '-' is described (with an extra part in the full help message below the synopsis). -- Be conservative i

Re: for; do; done regression ?

2011-01-10 Thread Roman Rakus
On 01/10/2011 05:24 PM, Marc Herbert wrote: Le 10/01/2011 13:38, Greg Wooledge a écrit : Don't use seq, ever, because it's Linux-only and is a stupid way to count when bash has builtin integer arithmetic.") seq is not exactly Linux-only but GNU-only. GNU-specific versus bash-specific, which is

Re: for; do; done regression ?

2011-01-10 Thread Marc Herbert
Le 10/01/2011 13:38, Greg Wooledge a écrit : > Don't use seq, ever, because it's Linux-only > and is a stupid way to count when bash has builtin integer arithmetic.") seq is not exactly Linux-only but GNU-only. GNU-specific versus bash-specific, which is worse? I'd say it depends... on which mail

Re: 'help set' missing '--'

2011-01-10 Thread Greg Wooledge
> >>SYNOPSIS > >> set [--abefhkmnptuvxBCHP] [-o option-name] [arg ...] On Mon, Jan 10, 2011 at 09:16:02AM -0500, Chris F.A. Johnson wrote: > On Mon, 10 Jan 2011, Christopher Roy Bratusek wrote: > >Hmm, one could read it as "--" "--a" "--b" and so on, maybe it could be > >improved. > >Agre

Re: 'help set' missing '--'

2011-01-10 Thread Chris F.A. Johnson
On Mon, 10 Jan 2011, Christopher Roy Bratusek wrote: On Monday 10 January 2011 09:06:42 Chris F.A. Johnson wrote: On Mon, 10 Jan 2011, Jan Schampera wrote: the help output for the set builtin command misses '--'. It's there: SYNOPSIS set [--abefhkmnptuvxBCHP] [-o option-name] [arg

Re: for; do; done regression ?

2011-01-10 Thread Greg Wooledge
On Fri, Jan 07, 2011 at 04:17:17AM +0300, Alexander Tiurin wrote: > ~$ time for i in `seq 0 1` ; do echo /o/23/4 | cut -d'/' -f2 ; done > > /dev/null Others have already begun investigating the internal causes of the slowdown. But if you actually want this particular piece of code to run mo

Re: 'help set' missing '--'

2011-01-10 Thread Dennis Williamson
On Mon, Jan 10, 2011 at 2:06 AM, Chris F.A. Johnson wrote: > On Mon, 10 Jan 2011, Jan Schampera wrote: > > the help output for the set builtin command misses '--'. >> > > It's there: > > SYNOPSIS >set [--abefhkmnptuvxBCHP] [-o option-name] [arg ...] > > -- > Chris F.A. Johnson,

Re: 'help set' missing '--'

2011-01-10 Thread Chris F.A. Johnson
On Mon, 10 Jan 2011, Jan Schampera wrote: the help output for the set builtin command misses '--'. It's there: SYNOPSIS set [--abefhkmnptuvxBCHP] [-o option-name] [arg ...] -- Chris F.A. Johnson, Author: Pro Bash Programming: Scripting the GNU/Linux Sh