nmh-workers
[Top] [All Lists]

Re: Solaris 'vim' configure bug

2003-06-02 20:30:11
echo 'r /nonexist-file\nq' | ex > /dev/null 2>&1

This works with vim 6.0 and both bash and the Solaris release of 'sh'.
Should 'configure.in' be changed this way to make it work?

When I last tried something like that (in something else), I discovered that
"\n" wasn't portable.  Perhaps the best thing is something like:

cat <<'EOC' | ex > /dev/null 2>&1
r /nonexist-file
q
EOC

or perhaps

(echo 'r /nonexist-file'; echo 'q') | ex > /dev/null 2>&1

--Ken

<Prev in Thread] Current Thread [Next in Thread>