Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: read -s



    Hi Oliver :)

>I expect it would be fairly easy to add this -s option to the read in zsh.
>Does anyone think it would be worth doing?

    IMHO the stty solution is cleaner and more portable. BASH is
bloated with things like those, please don't imitate ;))

    For example, bash has a non-POSIX, non-SuSv3 compliant
implementation of 'printf' builtin, and zsh has one fully compliant,
and this is applicable to more builtins. The '-s' flag to read is not
necessary at all. UNIX has this policy (IMHO, again): keep it simple
and divide the tasks among processes instead of bloating one of them.

    Raúl



Messages sorted by: Reverse Date, Date, Thread, Author