lkml.org 
[lkml]   [2001]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
SubjectRe: /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/
\
 
 \ /
  Last update: 2005-03-22 12:56    [W:0.057 / U:0.640 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site