FG
šŸ’» Software

Can I keep . and .. out of .* expansion?

Fresh5 days ago
Mar 15, 20261991 views
Confidence Score0%
0%

Problem

I often find it annoying (or worse) when I type in bash and the command applies to the parent directory and current directory. Is there some shell option or other configuration I can tweak to make bash exclude and from the expansion of ?

Error Output

command .*

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Can I keep . and .. out of .* expansion?

Low Risk

In bash, in this order: When GLOBIGNORE is set, . and .. are automatically ignored, so you dont actually need to set them in GLOBIGNORE, but if you have nothing else to ignore you wont have anything to set it to. Every time you set GLOBIGNORE to a n…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment