View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0015538||CentOS-7||-OTHER||public||2018-12-05 18:56||2018-12-08 00:28|
|Target Version||Fixed in Version|
|Summary||0015538: df Alias created after update to 7.6.1810|
|Description||The .bashrc changed for root after update to 7.6.1810 with respect to df. Changes behavior of df if not utilizing the full path. Any scripts, apps, or programs that utilize the command without specifying the full path will have a different result if expecting anything other than the df -k.|
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias df='df | sort -k 6n'
# Source global definitions
if [ -f /etc/bashrc ]; then
Out of 15 updates, 1 showed this behavior.
|Steps To Reproduce||Have not been able to reproduce with recent released updates on other systems. Will update this issue if encounter it again with other updates or other systems found with same occurrence.|
|Additional Information||This is more an info in case it had been changed already for those looking for odd behaviors in df in specific updates. Remedy is very simple to comment or remove the alias in the .bashrc.|
|Tags||bashrc alias df|
|Is this on a fresh install? I just did a test with the 7.6 Minimal iso and the resulting /root/.bashrc on the newly formatted and installed system did not have that line in it. Nor do any of the half a dozen existing systems that I've upgraded from 7.5 to 7.6. That's such a strange line to add for no reason that I would suspect perhaps one of your colleagues added it?|
No, it was not a fresh install.
This had been updated for a while starting from 7.0.1503. As most around here have problems with Word and Excel, very unlikely anyone would have attempted a vi or pico session. It is a very isolated system, so the only changes that appeared recently was the update. I was checking some mount points and they did not come back with what I expected with a df -h until I found the alias. I typically do not use aliases and definitely not on df.
|What output does "rpm -V rootfiles" return?|