lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, Feb 27, 2014 at 5:08 AM, Sean Conner <sean@conman.org> wrote:
>         list = {}
>         cmd = U("ls -l") .. U("grep foobar") / "grep-stderr" .. function()

Here's another notation style that we once discussed:

res = shell.ls{l=true}:grep 'foobar'

A chain of methods, where method name are commands, flags are table
keys and arguments are table entries or arguments.