pne: A picture of a plush toy, halfway between a duck and a platypus, with a green body and a yellow bill and feet. (Default)
[personal profile] pne

Today, I found out that Unix will let you execute zero-length files; presumably, it treats them as shell scripts which do nothing and return 0.

I found that after a Perl script I had written for a cow orker started producing logfile errors about how files are open when they aren't, after they had reinstalled the system; turned out that /sbin/fuser, which I was using to check whether a file was open (and which returns 0 if they're open, non-0 if they're not) was suddenly only 0 bytes big. (And /usr/sbin/lsof, which I could have also used, was also 0 bytes.)

Bizarre.

(will be screened)
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org

Profile

pne: A picture of a plush toy, halfway between a duck and a platypus, with a green body and a yellow bill and feet. (Default)
Philip Newton

June 2015

S M T W T F S
 12 3456
78910111213
14151617181920
2122232425 2627
282930    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Thursday, 1 January 2026 21:28
Powered by Dreamwidth Studios