lovingboth: ([default])
[personal profile] lovingboth
Memo to self: when running a Python script, either put in a '#! /usr/bin/python' as the first line or have it as an argument to python. Don't run the script directly or it will be interpreted as a shell script and the results could be nasty. Fortunately, they were just a bit confusing this time...

(no subject)

Date: 2011-12-07 12:44 pm (UTC)
ciphergoth: (Default)
From: [personal profile] ciphergoth
That is such a stupid misfeature! If it's not unambiguous how to run something, just don't run it - don't guess a random interpreter and pipe it into that FFS!

(no subject)

Date: 2011-12-07 04:31 pm (UTC)
ciphergoth: (Default)
From: [personal profile] ciphergoth
I doubt it sadly. I suspect it simply predates the "#!" feature that's now used and has been kept all this time for backwards compatibility reasons.

Profile

lovingboth: (Default)
Ian

February 2026

S M T W T F S
1234567
891011121314
15161718192021
22232425262728

Most Popular Tags

Page Summary

Active Entries

Style Credit

Expand Cut Tags

No cut tags