Hi!
I've had a brief look at Plan 9 and it looks quite an interesting operating system. I find some utilities very nice and one of them is actually src(1), which finds a source code for an executable.
Honestly, I really miss this-like utility in FreeBSD: sometimes I slightly modify the source code in
I'm aware that there is devel/plan9port that provides "src" utility as well, but I'm a bit confused that I have to install all the rest of the programs that this port provides just in order to get only one I really need. Moreover, for some reason I feel that this particular program (the idea behind it - finding the sources) does not require "mimicking" another operating system and "stealing" its programs as is.
I haven't find anybody being interested in this, so I want to ask here: is there an utility in FreeBSD (maybe in the base, maybe in the ports) that is similar to Plan 9's src(1) tool? The reason I'm particularly interested about FreeBSD is that FreeBSD is shipped with its source code and I suppose it should be possible to implement such a tool and it's gonna fit right in, in my opinion.
Thank you in advance.
Artem
I've had a brief look at Plan 9 and it looks quite an interesting operating system. I find some utilities very nice and one of them is actually src(1), which finds a source code for an executable.
Honestly, I really miss this-like utility in FreeBSD: sometimes I slightly modify the source code in
/usr/src
to fit my needs, or sometimes I'm just curious how this or that program works and I want to look into its source. Usually, I do something like this to figure this out: find /usr/src -name "ed"
- in order to find sources for ed(1), for example. However, this particular approach doesn't always work, 'cause sometimes the directories (or even files) do not match the name of their executable.I'm aware that there is devel/plan9port that provides "src" utility as well, but I'm a bit confused that I have to install all the rest of the programs that this port provides just in order to get only one I really need. Moreover, for some reason I feel that this particular program (the idea behind it - finding the sources) does not require "mimicking" another operating system and "stealing" its programs as is.
I haven't find anybody being interested in this, so I want to ask here: is there an utility in FreeBSD (maybe in the base, maybe in the ports) that is similar to Plan 9's src(1) tool? The reason I'm particularly interested about FreeBSD is that FreeBSD is shipped with its source code and I suppose it should be possible to implement such a tool and it's gonna fit right in, in my opinion.
Thank you in advance.
Artem