lua-users home
lua-l archive

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


On Fri, Sep 28, 2007 at 08:29:32AM +1000, Duck wrote:

>   $ echo '= 6' | lua -i

STDIN is a PIPE. On GNU/Linux terminal related IO (tcgetattr) will result
in error "EINVAL (Invalid argument)". In this case GNU readline will
disable echoing.

>   $ lua -i < filecontainingequals6 

STDIN is a file. On GNU/Linux terminal related IO will result in error
"ENOTTY (Inappropriate ioctl for device)". But GNU readline enables
echoing in this case. I don't know, if this is a bug or feature....
 
Jürgen