This applies to 8.04 and may also apply to 8.10.
Does your file
~/.bashrc
include the following:
# Some comment, like:
# This ensures that * includes hidden folders and files
shopt -s dotglob
Strangely, I've twice encountered it in 8.04 where mine does not include it.
It ensures that hidden files are removed (rm) or copied (cp) when used with the * wildcard, like
rm -r dir/*
or
cp -r dir1/* dir2
Most users (myself included) would not think to look for this unless they got some errors after using cp, rm, etc., with *.
Does your file
~/.bashrc
include the following:
# Some comment, like:
# This ensures that * includes hidden folders and files
shopt -s dotglob
Strangely, I've twice encountered it in 8.04 where mine does not include it.
It ensures that hidden files are removed (rm) or copied (cp) when used with the * wildcard, like
rm -r dir/*
or
cp -r dir1/* dir2
Most users (myself included) would not think to look for this unless they got some errors after using cp, rm, etc., with *.
Comment