> >Would there be a way to read in string containing \000 character ?
> >
> >That way you could use
> >
> >...; do printf "$i\000"; done
> >
> >However that does not seem to be possible:
> >
> >:echo system("printf 'aaa\000bbb'")
> >E484: Can't open file /tmp/v984274/8
> >
>
> :echo system("sh -c '" . 'printf "aaa\000bbb"' . "'")
Not for me
:echo system("sh -c '" . 'printf "aaa\000bbb\n"' . "'")."ccc"
-> aaaccc
The bbb is not read
> :let tmpfile=tempname()
> :call system("sh -c '" . 'printf "aaa\000bbb" >' . tmpfile . "'")
> :exec "sp" tmpfile
This works correctly, thanks
--
Vlad
pgpSBg74hwwK8.pgp
Description: PGP signature
