how to use / what to expect / unexpected behavior
m-faith opened this issue · 2 comments
m-faith commented
I have hilbish
installed and working but I'm surprised by:
m ~/code/docs ∆ date
Sat Dec 30 12:39:50 PM EST 2023
m ~/code/docs ∆ d
hilbish: d not found
m ~/code/docs ∆ d = date
m ~/code/docs ∆ d
hilbish: d not found
m ~/code/docs ∆ d = date; print(d)
nil
...I'm expecting to be able to assign a shell command's output (date
in this case) to a variable but it doesn't work.
Is it possible to do that? Is there documentation around use of lua/shell syntax?
TorchedSammy commented
to get output from a command in lua, use hilbish.run
you can run either lua or shell script interactively, but not both as you're trying to do.
m-faith commented
gotcha, thank you!