FS#57858 - /ect/skel/.bashrc creates a non working alias

Attached to Project: Arch Linux
Opened by Reginald (Uqbar) - Friday, 16 March 2018, 09:17 GMT
Last edited by Antonio Rojas (arojas) - Friday, 16 March 2018, 10:58 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
In /ect/skel/.bashrc there's an alias which is not working. And never will.
It's:

alias du="du -ach | sort -h"

So when you run

$ du somedir

you are actually running

du -ach | sort -h somedir

and get this error message:

sort: read failed: somedir/: Is a directory

The command du is supposed to accept a destination file or directory list as argument.
Please, change that alias to

du -ach
This task depends upon

Closed by  Antonio Rojas (arojas)
Friday, 16 March 2018, 10:58 GMT
Reason for closing:  Not a bug
Comment by loqs (loqs) - Friday, 16 March 2018, 09:25 GMT
/etc/skel/.bashrc as provided by bash 4.4.019-1 does not contain that alias. Its contents are
https://git.archlinux.org/svntogit/packages.git/tree/trunk/dot.bashrc?h=packages/bash&id=0b9a06e372dc67ac07cb706e981691444b0061f8
Comment by Reginald (Uqbar) - Friday, 16 March 2018, 09:33 GMT
The attached file is what it's in my /etc/skel/.bashrc
Comment by loqs (loqs) - Friday, 16 March 2018, 09:46 GMT
$ pacman -Qo /etc/skel/.bashrc
/etc/skel/.bashrc is owned by bash 4.4.019-1
$ pacman -Qkk bash
bash: 235 total files, 0 altered files
Comment by Reginald (Uqbar) - Friday, 16 March 2018, 10:47 GMT
I deleted that file and reinstalled bash.
Now that file is like yours.
Weird, as I am the one and only user in this system.

Loading...