lkml.org 
[lkml]   [2000]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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]
\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.104 / U:0.936 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site