|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0014164||CentOS-7||bash||public||2017-11-22 11:49||2017-11-22 14:16|
|Platform||x86_64||OS||Centos||OS Version||Server with GUI|
|Target Version||Fixed in Version|
|Summary||0014164: Alias function may run not properly.|
|Description||Alias function may run not properly.|
- common user’s case: common user’s terminal tab close as intended after cleaning task is accomplished.
- root user’s case:
[root@localhost ~]# cleanall
Loaded plugins: fastestmirror, langpacks
Cleaning repos: base epel extras updates
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
Output illustrated in root user’s case notifies to accomplish what is already explicitly intended to be accomplished by running this very alias.
|Steps To Reproduce||1. Open terminal, and open new tab so two tabs are opened.|
2. In terminal, edit common user’s and root user’s respective .bashrc files with vim or gedit text editors in order to detect if pasted strings are formatted with font monospaced and Copy/past followings strings to them.
alias cleanall='yum clean all;rm -rf /var/cache/yum;cat /dev/null > ~/.bash_history && history -c && exit'
3. Close the terminal tabs (the whole terminal). Repeat step 1.
4. Run the alias just created in both user’s terminal: respectively $ cleanall, # cleanall.
|Additional Information||Component version: bash-4.2.46-29.el7_4.x86_64|
If you copy/past to terminal the provided strings related to the alias, make sure before you copy to have both source strings and terminal used fonts set to be identical, from same monospace font family and same style. (example font family: Liberation Mono, style: Regular). In Firefox it is listed as whole name as Liberation Mono and in Gnome environment terminal as Liberation Mono Regular.
Note: character “’” is involved in an issue that I have not reported yet; once pasted to terminal the font reveals to be corrupted. If issue occurs just delete all those character “’” and replace them manually.
Issue does not occur on Fedora 27 x86_64.
|Tags||No tags attached.|
I have read this about 6 times and still have no idea what you are reporting. Only root can use yum. Only root can rm -rf /var/cache/yum. A normal user can do neither of those things so the alias for them is pointless.
What were you expecting to happen?
Ricky Tigg (reporter)
|No clue to guess that "this" neither what you may have not done or done.|
|2017-11-22 11:49||Ricky Tigg||New Issue|
|2017-11-22 12:45||TrevorH||Note Added: 0030634|
|2017-11-22 14:16||Ricky Tigg||Note Added: 0030635|