[lkml]   [2000]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    SubjectRe: ver_linux script
    Hi there.

    >> It is usually a good idea to run

    >> sh /usr/src/linux/scripts/ver_linux

    >> and include the output when reporting kernel problems.

    There's one obvious problem with the ver_linux script, which can
    be found by doing the following under bash or the equivalent
    under csh or the like:

    alias ls='ls -F'
    . ver_linux

    Watch the said script give completely crazy results!!! I've had
    that alias in my ~/.bashrc for several years now.

    Here's the patch that I first submitted for when kernel 2.0.36
    was current, which deals with this once and for all without
    destroying the user's environment. This patch is against 2.3.51
    for reference.

    ===8<=== CUT ===>8===

    --- ver_linux~ Wed Dec 15 07:05:03 1999
    +++ ver_linux Mon Mar 13 00:52:58 2000
    @@ -1,10 +1,20 @@
    # Before running this script please ensure that your PATH is
    -# typical as you use for compilation/istallation. I use
    +# typical as you use for compilation/installation. I use
    # /bin /sbin /usr/bin /usr/sbin /usr/local/bin, but it may
    # differ on your system.
    +# The following if deals with the possibility of aliases being
    +# set that would otherwise foul this script up -
    +if [ $# -eq 0 -o "$1" != "Verified OK" ]; then
    + /bin/sh $0 'Verified OK'
    +unalias -a
    echo '-- Versions installed: (if some fields are empty or look'
    echo '-- unusual then possibly you have very old versions)'
    uname -a
    @@ -30,3 +40,6 @@
    expr --v 2>&1 | awk 'NR==1{print "Sh-utils ", $NF}'
    X=`cat /proc/modules | sed -e "s/ .*$//"`
    echo "Modules Loaded "$X
    +# EOF.
    ===8<=== CUT ===>8===

    ALAN: Any chance this will get included this time?

    Best wishes from Riley.

    * Copyright (C) 2000, Memory Alpha Systems.
    * All rights and wrongs reserved.

    | There is something frustrating about the quality and speed of Linux |
    | development, ie., the quality is too high and the speed is too high, |
    | in other words, I can implement this XXXX feature, but I bet someone |
    | else has already done so and is just about to release their patch. |

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:57    [W:0.025 / U:2.368 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site