Re: [Help-bash] which paradigms does bash support

2018-03-15 Thread Dieter Van Eessen
aregi...@gmail.com wrote: > >>>> As a programming language which paradigms does bash support. > >> Declarative, procedural, imperative? > >>> > >>> This belongs on help-b...@gnu.org so I'm Cc'ing that address. > >>> >

Re: [Help-bash] which paradigms does bash support

2018-03-15 Thread Greg Wooledge
On Wed, Mar 14, 2018 at 02:11:32PM -0700, Andy Chu wrote: > Shell Has a Forth-like Quality > http://www.oilshell.org/blog/2017/01/13.html Similar to http://mywiki.wooledge.org/WrapperScript :) > Pipelines Support Vectorized, Point-Free, and Imperative Style > http://www.oilshell.org/blog/2017/01/

Re: [Help-bash] which paradigms does bash support

2018-03-14 Thread Andy Chu
;> On 26/01/15 13:43, Greg Wooledge wrote: > >>> On Sun, Jan 25, 2015 at 08:11:41PM -0800, garegi...@gmail.com wrote: > >>>> As a programming language which paradigms does bash support. > >> Declarative, procedural, imperative? > >>> > >>> Th

Re: which paradigms does bash support

2018-03-14 Thread Pádraig Brady
On 14/03/18 00:22, Pierre Gaston wrote: > On Mon, Jan 26, 2015 at 6:05 PM, Pádraig Brady wrote: > >> On 26/01/15 13:43, Greg Wooledge wrote: >>> On Sun, Jan 25, 2015 at 08:11:41PM -0800, garegi...@gmail.com wrote: >>>> As a programming language which paradigms

Re: which paradigms does bash support

2018-03-14 Thread Greg Wooledge
On Wed, Mar 14, 2018 at 10:47:09AM +0100, Marc Weber wrote: > I'm not a shell export, but I don't know how to return a list in bash. Same way you return a string, or a number, or anything else: you don't. Functions in bash aren't actually functions. They're user-definable commands (procedures).

Re: which paradigms does bash support

2018-03-14 Thread Marc Weber
Excerpts from Pierre Gaston's message of 2018-03-14 09:22:45 +0200: > > On 26/01/15 13:43, Greg Wooledge wrote: > > > On Sun, Jan 25, 2015 at 08:11:41PM -0800, garegi...@gmail.com wrote: > > >> As a programming language which paradigms does bash support. > &g

Re: which paradigms does bash support

2018-03-14 Thread Pierre Gaston
On Mon, Jan 26, 2015 at 6:05 PM, Pádraig Brady wrote: > On 26/01/15 13:43, Greg Wooledge wrote: > > On Sun, Jan 25, 2015 at 08:11:41PM -0800, garegi...@gmail.com wrote: > >> As a programming language which paradigms does bash support. > Declarative, procedural, imperative?

Re: [Help-bash] which paradigms does bash support

2018-03-13 Thread Garreau, Alexandre
On 2015-01-26 at 16:05, Pádraig Brady wrote: > It should be noted that shell programming is closely related to > functional programming. […] > > By trying to use filters and pipes instead of procedural shell > statements, you get the advantage of using compiled code, and implicit > multicore suppor

Re: which paradigms does bash support

2015-01-26 Thread Pádraig Brady
On 26/01/15 13:43, Greg Wooledge wrote: > On Sun, Jan 25, 2015 at 08:11:41PM -0800, garegi...@gmail.com wrote: >> As a programming language which paradigms does bash support. Declarative, >> procedural, imperative? > > This belongs on help-b...@gnu.org so I'm Cc&#x

Re: which paradigms does bash support

2015-01-26 Thread Greg Wooledge
On Sun, Jan 25, 2015 at 08:11:41PM -0800, garegi...@gmail.com wrote: > As a programming language which paradigms does bash support. Declarative, > procedural, imperative? This belongs on help-b...@gnu.org so I'm Cc'ing that address. Shell scripts are procedural. The contro

which paradigms does bash support

2015-01-25 Thread garegin16
As a programming language which paradigms does bash support. Declarative, procedural, imperative?