lua-users home
lua-l archive

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


On 8/16/10, Jonathan Castello <twisolar@gmail.com> wrote:
>  In which case, I'm confused. Which language actually makes "" a false value?

Unix shell scripts (or, to be pedantic, the "test" program, a.k.a
"["), where a single string is true if it contains anything. e.g.

if [ "" ]; then
  echo t
else
  echo f
fi

will say "f".  But I can't recommend compiling shell scripts into Lua... :)

    M