On Tue, Sep 02, 2003 at 11:03:07PM +0200, guran wrote:
When as root I tried to get the version nr for kernel I did not get any
answer, when I logged out of mc and root I got an answer.
I don't know if it is a problem:
the problem is you being a unix newbie (no offense intended, i am just
an old fart)
repeat with me:
globbing is done by the shell
globbing is done by the shell
globbing is done by the shell
globbing is done by the shell
[EMAIL PROTECTED] log]# rpm -qa kernel*
if you do
rpm -qa kernel*
in the /var/log directory
it matches a directory named kernel there and the line evaluates to
rpm -qa kernel
and there is no pattern named just kernel
[EMAIL PROTECTED] guran]$ rpm -qa kernel*
in your home directory there is probably no file whose name starts with
kernel, and you have nullglob unset, so the word is left as it is, the
line evaluates to:
rpm -qa kernel*
which yelds
kernel-source-2.4.22-4mdk
kernel-2.4.22.4mdk-1-1mdk
exercise for the reader
1) what would have happened if you had set nullglob?
2) what should the correct command be?
regards,
L.
--
Luca Berra -- [EMAIL PROTECTED]
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \