Why do basic Unix/Linux commands work differently in different distributions?
Jason S
2011-03-14 20:41:07 UTC
Basic commands, like grep, use different flags in different distributions. For instance, some distributions have a version of grep that doesn't even have the -R flag, which allows for recursive searching.I have seen instances where the same functionality is offered in 2 different versions of a command, but the flags to invoke the functionality were different.
How did this come to be? Doesn't that hurt interoperability? Are there any efforts to rectify?
Four answers:
2011-03-14 20:43:24 UTC
I guess it depends on the version of grep. If you're using an older version then install a later one.
@Colanth - That's not entirely true. Many distributions conform to POSIX, (http://en.wikipedia.org/wiki/POSIX#Mostly_POSIX-compliant ) which is a family of standards for interoperability across UNIX-like systems. Such standardisation just isn't present on Windows operating systems.
2011-03-14 20:48:10 UTC
Standards are nice - they lead to an operating system like Windows. When the OS is open source, and anyone can post his or her own version of a command, you get Linux. Since you can always use the man page for the version you have, there's no problem.
parten
2016-11-16 09:19:50 UTC
a million. they are distinctive in that their thought strives to proceed to be interior the Christ information. This leads to a metamorphosis in character 2. no longer something could "seem" distinctive, for it variety of feels, then it ought to no longer be authentic. the adaptation IS in thought and action in all issues, and others see this. In essence, it plant life seeds everywhere. 3. they could see peace and soundness or thought (integrity) and could start to ask your self the way it quite is achievable in a worldwide crammed to the brim with the evil of the human concepts's "creations."
2011-03-14 20:45:27 UTC
They've found a better way to do something, which is why they changed it. :)
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.