Messages in this thread | | | Date | Sun, 12 Mar 2000 22:01:41 -0500 | From | Tim Coleman <> | Subject | Re: ver_linux script |
| |
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 [unhandled content-type:application/pgp-signature] | |