View Issue Details

IDProjectCategoryView StatusLast Update
0014164CentOS-7bashpublic2017-11-22 14:16
ReporterRicky Tigg 
Status newResolutionopen 
Platformx86_64OSCentosOS VersionServer with GUI
Product Version7.4.1708 
Target VersionFixed in Version 
Summary0014164: Alias function may run not properly.
DescriptionAlias function may run not properly.

Actual results:
- 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
[yk@localhost ~]$

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 Reproduce1. 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.

# Clean-task
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 InformationComponent 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.
TagsNo tags attached.




2017-11-22 12:45

manager   ~0030634

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

Ricky Tigg

2017-11-22 14:16

reporter   ~0030635

No clue to guess that "this" neither what you may have not done or done.

Issue History

Date Modified Username Field Change
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