Re: ver_linux script

From: Tim Coleman (tim@beastor.mine.nu)
Date: Sun Mar 12 2000 - 22:01:41 EST


On Mon, Mar 13, 2000 at 01:41:48AM +0000, Alan Cox wrote:
> > alias ls='ls -F'
> > . ver_linux
> >
>
> alias make='echo banana'
> make bzImage

Heheh.

> That doesnt work either ..
>
> Perhaps we should use /bin/ls ?

Not to mention that the change that Riley proposed didn't seem
to work for me anyway.

beastor:/home/tim# unalias -a
beastor:/home/tim# cp /usr/src/linux/scripts/ver_linux .
beastor:/home/tim# patch -p0 < rhw
patching file `ver_linux'
beastor:/home/tim# alias ls='ls -F'
beastor:/home/tim# . ver_linux
bash: /bin/bash: cannot execute binary file

Seriously though, Alan, I think it's useful to see what version
the kernel has been compiled with, so I've written up a patch
against 2.3.51 which uses /proc/version instead of "uname -a"
(provided that you have /proc/version, of course).

I've included the change to use "/bin/ls" instead of just ls,
which seems to fix the weird behaviour that Riley describes.

This is non-Earth-shattering stuff, but it's kind of handy.

Tim

-- 
------------------------------------------------------------------------
Tim Coleman <tim@beastor.mine.nu>
Software Developer/Systems Administrator/RDBMS Specialist/Linux Advocate
University of Waterloo Honours Co-op Combinatorics & Optimization
Finger tim@beastor.mine.nu for GnuPG public key


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:23 EST