js wrote:
On Dec 22, 2007 9:41 PM, Rainer Müller <raimue@macports.org> wrote:
js wrote:
So let me ask this, "Do you like to have gls, guniq in your /opt/local/bin? Is there any case that removing "g" prefix causes any problems? I think they are by default off because you expect ls from BSD and not from GNU on Mac OS X by default. It might break other shell scripts.
I doubt it. I think almost all scripts starts with "#!/bin/bla" or "#!/usr/bin/bla" so installing GNUs in /opt/local/bin will not break anything, if you don't run a script like "sh somescript.sh" or "awk -f somescript.awk"
Imagine a bash script using ls, but it is expecting BSD ls, not GNU ls. It may fail because the options of these programs are different (except the POSIX subset of arguments). Rainer