Re: [gentoo-user] /usr/bin/[ and coreutils

2011-11-07 Thread Claudio Roberto França Pereira
What about [[? I've seen scripts using [[ instead of only one [. Whats the point/difference?

Re: [gentoo-user] /usr/bin/[ and coreutils

2011-11-07 Thread Pandu Poluan
On Nov 8, 2011 9:02 AM, Claudio Roberto França Pereira spide...@gmail.com wrote: What about [[? I've seen scripts using [[ instead of only one [. Whats the point/difference? AFAIK [[ was originally a bash-specific built-in command that provides more functionality than /bin/[, but can still use

Re: [gentoo-user] /usr/bin/[ and coreutils

2011-11-07 Thread Pandu Poluan
On Nov 8, 2011 1:01 PM, Pandu Poluan pa...@poluan.info wrote: On Nov 8, 2011 9:02 AM, Claudio Roberto França Pereira spide...@gmail.com wrote: What about [[? I've seen scripts using [[ instead of only one [. Whats the point/difference? AFAIK [[ was originally a bash-specific built-in

Re: [gentoo-user] /usr/bin/[ and coreutils

2011-10-13 Thread Jesús J . Guerrero Botella
Yes, it's a different binary, and it's perfectly usual to find it in a Linux system. But note that, at least in bash, you rarely will be using /usr/bin/[ unless you reference it using the full path (either in a relative or absolute way). This is because bash has a builtin that takes over that

Re: [gentoo-user] /usr/bin/[ and coreutils

2011-10-13 Thread Alan McKinnon
On Thu, 13 Oct 2011 15:38:08 +0200 Jesús J. Guerrero Botella jesus.guerrero.bote...@gmail.com wrote: Yes, it's a different binary, and it's perfectly usual to find it in a Linux system. But note that, at least in bash, you rarely will be using /usr/bin/[ unless you reference it using the

Re: [gentoo-user] /usr/bin/[ and coreutils

2011-10-13 Thread Michael Mol
On Thu, Oct 13, 2011 at 9:50 AM, Alan McKinnon alan.mckin...@gmail.com wrote: On Thu, 13 Oct 2011 15:38:08 +0200 Jesús J. Guerrero Botella jesus.guerrero.bote...@gmail.com wrote: Yes, it's a different binary, and it's perfectly usual to find it in a Linux system. But note that, at least in

Re: [gentoo-user] /usr/bin/[ and coreutils

2011-10-13 Thread Alan McKinnon
On Thu, 13 Oct 2011 09:59:21 -0400 Michael Mol mike...@gmail.com wrote: The binaries are usually POSIX-compliant, whereas the builtins may include extra bashisms (which tend to break apps expecting just the basic POSIX behaviour) I haven't encountered POSIX-dependent apps breaking on

Re: [gentoo-user] /usr/bin/[ and coreutils

2011-10-12 Thread William Kenworthy
On Wed, 2011-10-12 at 07:45 +0200, meino.cra...@gmx.de wrote: William Kenworthy bi...@iinet.net.au [11-10-12 07:40]: I have been checking my system for some deep seated problems and in the process, ran across the fact that equery files sys-apps/coreutils-8.7 shows a file included called

Re: [gentoo-user] /usr/bin/[ and coreutils

2011-10-12 Thread Jonas de Buhr
Am Tue, 11 Oct 2011 22:42:00 -0700 schrieb Canek Peláez Valdés can...@gmail.com: On Tue, Oct 11, 2011 at 10:35 PM, William Kenworthy bi...@iinet.net.au wrote: I have been checking my system for some deep seated problems and in the process, ran across the fact that equery files

[gentoo-user] /usr/bin/[ and coreutils

2011-10-11 Thread William Kenworthy
I have been checking my system for some deep seated problems and in the process, ran across the fact that equery files sys-apps/coreutils-8.7 shows a file included called /usr/bin/[ - thats right, left square bracket! Is that a bug or if real, what would you use it for? It doesnt seem to be on

Re: [gentoo-user] /usr/bin/[ and coreutils

2011-10-11 Thread Canek Peláez Valdés
On Tue, Oct 11, 2011 at 10:35 PM, William Kenworthy bi...@iinet.net.au wrote: I have been checking my system for some deep seated problems and in the process, ran across the fact that equery files sys-apps/coreutils-8.7 shows a file included called /usr/bin/[ - thats right, left square

Re: [gentoo-user] /usr/bin/[ and coreutils

2011-10-11 Thread Manuel McLure
On Tue, Oct 11, 2011 at 10:35 PM, William Kenworthy bi...@iinet.net.au wrote: I have been checking my system for some deep seated problems and in the process, ran across the fact that equery files sys-apps/coreutils-8.7 shows a file included called /usr/bin/[ - thats right, left square

Re: [gentoo-user] /usr/bin/[ and coreutils

2011-10-11 Thread meino . cramer
William Kenworthy bi...@iinet.net.au [11-10-12 07:40]: I have been checking my system for some deep seated problems and in the process, ran across the fact that equery files sys-apps/coreutils-8.7 shows a file included called /usr/bin/[ - thats right, left square bracket! Is that a bug or