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.
> > Declarative, procedural, imperative?
Read code like 'topgit' and you'll understand that there is a reason why
alternate programming languages do exist for complex programs.

I'm not a shell export, but I don't know how to return a list in bash.

You can get quit far with shell scripts depending on what you do.

But seriously - why not just use Python/Perl/Ruby/... ?

some paradigms
* global functions/ vars / some global state (eg how glob patterns
  behave)
* builtin background processing by using &
  leep 10 & sleep 10 & wait
* propagate exit codes by false && true && true (only first will be run)
* signal handlers and clreanup hooks
* hashes, lists, but syntax is wired (IMHO)
  => can you return lists?
... -> so for anything complex use a real language, please.

Marc Weber

Reply via email to