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

Re: Opts -i and -s no longer work together, haven't for while



On Oct 10, 11:12pm, Bart Schaefer wrote:
}
} But by the time we get to zsh-3.0.5:
} 
} schaefer[794] Src/zsh -fsi <<<'echo foo'
} torch% 
} 
} (the shell is now reading from the terminal and ignores stdin)

So the problem appears to be that ZLE remains enabled whenever the
standard OUTPUT is a terminal, even if the standard INPUT is not,
and having ZLE turned on (as it is by default from sometime after
2.4) overrides everything else, ignores the command line script
file name, and reads from the terminal.

So you have to use "zsh +Z -fi ..." to get the effect I expected.

Do we want to change this, or document it?  We'd have to move the
default setting of opts[USEZLE] from zsh_main() into parseargs(),
I think.



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