Messages in this thread Patch in this message | | | From | Peter Samuelson <> | Date | Mon, 5 Feb 2001 10:39:13 -0600 (CST) | Subject | Re: /usr/src/linux/scripts/ver_linux prints out incorrect info when "ls" is aliased. |
| |
[Ishikawa <ishikawa@yk.rim.or.jp>] > I have no idea why I invoked ver_linux using "." : I must have seen > it somewhere and just followed it somehow.
Who knows. Anyway, the following works in 'bash' at least -- don't know about other shells -- but it's quite a hack....
Peter
--- scripts/ver_linux~ Tue Sep 19 22:28:37 2000 +++ scripts/ver_linux Mon Feb 5 10:38:21 2001 @@ -4,6 +4,15 @@ # /bin /sbin /usr/bin /usr/sbin /usr/local/bin, but it may # differ on your system. # +case "$_" in /*/sh|/*/bash|sh|bash) ;; *) + echo '*** Warning: you appear to have used the dreaded' + echo '*** . /path/to/ver_linux' + echo '*** syntax -- I hope you don'\''t have any aliases set' + echo '*** that might affect this script.' + echo '*** Recommended syntax is:' + echo '*** sh /path/to/ver_linux' + ;; +esac PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH echo '-- Versions installed: (if some fields are empty or look' echo '-- unusual then possibly you have very old versions)' - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
| |