forflo / shepi

Tiny EDSL for shell pipes in lua
13 stars 0 forks source link

How does one use pipes #2

Closed gytis-ivaskevicius closed 3 years ago

gytis-ivaskevicius commented 3 years ago

As we all know Lua does not have | operator which makes me wonder how does one uses this feature. Even tests don't pass:

~/Projects/shepi master
❯ busted -lpath "./source/?.lua" --pattern "spec" tests/
✱
0 successes / 0 failures / 1 error / 0 pending : 0.000015 seconds

Error → tests/spec_smoketest.lua:21: unexpected symbol near '|'
tests/spec_smoketest.lua
forflo commented 3 years ago

As we all know Lua does not have | operator

Lua does have the binary or operator.

https://www.lua.org/manual/5.3/manual.html#3.4.2

forflo commented 3 years ago

I am closing this for now.