On Sat, Sep 30, 2000 at 03:13:02PM +0100, Alan Cox wrote:
> > Please replace which with "command -v" which is required by SuS in /bin/sh.
>
> command -v breaks on some setups. One problem can be seen easily by doing this
>
> # command -v ls
> alias ls='ls --color=tty'
.bashrc is only read for
In article <[EMAIL PROTECTED]>,
Alan Cox <[EMAIL PROTECTED]> wrote:
>I'll play with the proposed which based fixes first, unless you have clever
>ideas ?
Include a script in scripts/kwhich that tells you the path to
a certain binary.
Below is a simple implementation. If you condense it you can
> Please replace which with "command -v" which is required by SuS in /bin/sh.
command -v breaks on some setups. One problem can be seen easily by doing this
# command -v ls
alias ls='ls --color=tty'
Because I build kernels with several compilers for several architectures I have
gcc aliased,
Alan Cox <[EMAIL PROTECTED]> wrote:
> Those distros that use which versions that are alias magic in bash
> need this to build 2.2.18pre12
Please replace which with "command -v" which is required by SuS in /bin/sh.
--
Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ )
Email: Herbert Xu
On Sat, Sep 30, 2000 at 01:16:21AM +0100, Alan Cox wrote:
> -CC =$(CROSS_COMPILE)$(shell if [ -n "`which gcc272 2>/dev/null`" ]; then echo
>"`which gcc272`";\
> - else if [ -n "`which kgcc 2>/dev/null`" ]; then echo "`which kgcc`"; else\
> +CC =$(CROSS_COMPILE)$(shell if [ -n "`which
[AC]
> -CC =$(CROSS_COMPILE)$(shell if [ -n "`which gcc272 2>/dev/null`" ]; then echo
>"`which gcc272`";\
> - else if [ -n "`which kgcc 2>/dev/null`" ]; then echo "`which kgcc`"; else\
> +CC =$(CROSS_COMPILE)$(shell if [ -n "`which gcc272 >/dev/null 2>/dev/null`" ];
>then echo "`which
[AC]
-CC =$(CROSS_COMPILE)$(shell if [ -n "`which gcc272 2/dev/null`" ]; then echo
"`which gcc272`";\
- else if [ -n "`which kgcc 2/dev/null`" ]; then echo "`which kgcc`"; else\
+CC =$(CROSS_COMPILE)$(shell if [ -n "`which gcc272 /dev/null 2/dev/null`" ];
then echo "`which
On Sat, Sep 30, 2000 at 01:16:21AM +0100, Alan Cox wrote:
-CC =$(CROSS_COMPILE)$(shell if [ -n "`which gcc272 2/dev/null`" ]; then echo
"`which gcc272`";\
- else if [ -n "`which kgcc 2/dev/null`" ]; then echo "`which kgcc`"; else\
+CC =$(CROSS_COMPILE)$(shell if [ -n "`which gcc272
Alan Cox [EMAIL PROTECTED] wrote:
Those distros that use which versions that are alias magic in bash
need this to build 2.2.18pre12
Please replace which with "command -v" which is required by SuS in /bin/sh.
--
Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ )
Email: Herbert Xu
Please replace which with "command -v" which is required by SuS in /bin/sh.
command -v breaks on some setups. One problem can be seen easily by doing this
# command -v ls
alias ls='ls --color=tty'
Because I build kernels with several compilers for several architectures I have
gcc aliased, and
In article [EMAIL PROTECTED],
Alan Cox [EMAIL PROTECTED] wrote:
I'll play with the proposed which based fixes first, unless you have clever
ideas ?
Include a script in scripts/kwhich that tells you the path to
a certain binary.
Below is a simple implementation. If you condense it you can
even
On Sat, Sep 30, 2000 at 03:13:02PM +0100, Alan Cox wrote:
Please replace which with "command -v" which is required by SuS in /bin/sh.
command -v breaks on some setups. One problem can be seen easily by doing this
# command -v ls
alias ls='ls --color=tty'
.bashrc is only read for
2.2.18pre12 fix for some distros said:
> Those distros that use which versions that are alias magic in bash
> need this to build 2.2.18pre12
No dice on Red Hat 6.9.5, it selects cc (and barfs). The unpatched version
works. In any case, with "> /dev/null" you are throwing
Those distros that use which versions that are alias magic in bash
need this to build 2.2.18pre12
--- Makefile~ Sat Sep 30 00:01:26 2000
+++ MakefileSat Sep 30 00:10:28 2000
@@ -22,8 +22,8 @@
AS =$(CROSS_COMPILE)as
LD =$(CROSS_COMPILE)ld
-CC =$(CROSS_COMPILE)$(shell if [
Those distros that use which versions that are alias magic in bash
need this to build 2.2.18pre12
--- Makefile~ Sat Sep 30 00:01:26 2000
+++ MakefileSat Sep 30 00:10:28 2000
@@ -22,8 +22,8 @@
AS =$(CROSS_COMPILE)as
LD =$(CROSS_COMPILE)ld
-CC =$(CROSS_COMPILE)$(shell if [
2.2.18pre12 fix for some distros said:
Those distros that use which versions that are alias magic in bash
need this to build 2.2.18pre12
No dice on Red Hat 6.9.5, it selects cc (and barfs). The unpatched version
works. In any case, with " /dev/null" you are throwing away the
16 matches
Mail list logo