Y
Hacker News
new
|
ask
|
show
|
jobs
by
_ZeD_
4144 days ago
"Forking to shell is the only way to reuse bash's code."
well, the other obvius way is to license this piece of code as GPLv2.
2 comments
yetihehe
4144 days ago
AFAIK this is THE reason for GPL. So that you either release your code and contribute to open source or suffer from slower access methods.
link
feld
4144 days ago
The BSDs doesn't ship with bash and their wordexp shelling out to /bin/sh doesn't suffer, so I don't see how this is a reason for the GPL.
link
yetihehe
4144 days ago
Probably I've written it not clearly enough: "Reason for GPL not allowing you to use code in your own programs, but allowing use through exec: you either release your code and contribute to open source or suffer from slower access methods."
link
feld
4144 days ago
ahh, ok; that's clearer
link
tedunangst
4144 days ago
Which would require libc to be GPL, something not even glibc does.
link