3 ms·
License-wise: - this piece of code is 2BSD-licensed - it calls out to /bin/sh - on OS X, /bin/sh is hardlinked to /bin/bash - OS X's bash is GPLv2 Forking
by lloeki 12y ago
License-wise:
- this piece of code is 2BSD-licensed
- it calls out to /bin/sh
- on OS X, /bin/sh is hardlinked to /bin/bash
- OS X's bash is GPLv2
Forking to shell is the only way to reuse bash's code. More often than not I really wish sh were not bash.
- _ZeD_ 12y 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.
- yetihehe 12y agoAFAIK this is THE reason for GPL. So that you either release your code and contribute to open source or suffer from slower access methods.
- feld 12y agoThe 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.
- tedunangst 12y agoWhich would require libc to be GPL, something not even glibc does.