What does "type -all df"(assuming bash) or "which df"(other shell) say
when run from your root account?

# echo $SHELL
/bin/bash

# which df
/bin/df

# type -all df
df is a function
df ()
{
    /bin/df -k
}
df is /bin/df

ah. fascinating. how the blue blazes did that get there?

It's not a symlink
ETCH-# ls -l /bin/df
-rwxr-xr-x  1 root root 31060 2005-09-04 11:32 /bin/df

It's not a shell script
# file /bin/df
/bin/df: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), stripped

ETCH-# od -c /bin/df |head -5
0000000 177   E   L   F 001 001 001  \0  \0  \0  \0  \0  \0  \0  \0  \0
0000020 002  \0 003  \0 001  \0  \0  \0   @ 217 004  \b   4  \0  \0  \0
0000040   D   u  \0  \0  \0  \0  \0  \0   4  \0      \0  \b  \0   (  \0
0000060 032  \0 031  \0 006  \0  \0  \0   4  \0  \0  \0   4 200 004  \b
0000100   4 200 004  \b  \0 001  \0  \0  \0 001  \0  \0 005  \0  \0  \0


I looked at the completions files and could not see a redefinition.

ETCH-# grep -lw df /etc/*
/etc/bash_completion
/etc/complete.tcsh

ETCH-24# grep -lF 'df -k' /etc/*
/etc/complete.tcsh


I then tried tcsh, for kicks. It appears to work correctly

ETCH-# tcsh
ETCH-19# which df
/bin/df

ETCH-20# type -all df
type: Command not found.

ETCH-21# df -text3
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda1               233335     60371    160516  28% /
/dev/hda8              2885780    405876   2333316  15% /data/ETCH_1
/dev/hda7               459143      8243    426403   2% /tmp
/dev/hda5              2885780   2046728    692464  75% /usr
/dev/hda6               918322    118425    750901  14% /var


So it looks like something somewhere redefined /bin/df for me, in the
bash executable?? That seems like a bug to me.

What now?

Cheers
Vince


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to