In article <slrnscc4qc.27...@publicly.invalid>,
>Am Sun, 13 Jun 2021 13:52:51 -0000 (UTC) schrieb Kenny McCormack
><
gaz...@shell.xmission.com>:
>>>readfile() as such does work with earlier versions, but
>>>readfile('/proc/self/cmdline') will only give me the expected result
>>>on 8.2.
>>
>> It works fine for me on all versions.
>>
>> What do you think was changed in 8.2?
>>
>
>hmmm, I am on version 7.2, and :echo readfile('/proc/self/cmdline') only
>comes back with "[]" when I issue gvim -R +20 myfile. Doing the same for
>an ordinary textfile with a few lines in it will work as expected. Odd.
I suppose the issue is that the cmdline file is delimited by null
characters rather than by newlines. Anyway, I was testing with 7.4 and 8.0
and could not get it to fail. It seems to just do the right thing for me.
readfile() seems to do the translation transparently.
Like you, I was testing via: :echo readfile('/proc/self/cmdline')
BTW, I assume you did have access to a system running 8.2 at some point to
test with, right?
>LISTER: Let's flag down a black cab and head for Real Street here. This
>Johnny won't come with us. He'd never fit in. Can you see him joining in
>on our late-night sessions of "pin the pointy stick on the weather girl"?
You have kewl sigs. Where do they come from?
--
The randomly chosen signature file that would have appeared here is more than 4
lines long. As such, it violates one or more Usenet RFCs. In order to remain
in compliance with said RFCs, the actual sig can be found at the following URL:
http://user.xmission.com/~gazelle/Sigs/Voltaire