1

stopping Linux shell while it is resolving (i.e. expanding) wildcards

view story
linux-howto

http://stackoverflow.com – In a typical Linux shell, you can use Ctrl+c to stop execution of a command. If you have started a run that uses wildcards (such as *) to find all files with a certain pattern, and if you have many files that need to be searched, it may take quite a long time for the shell to expand the wildcards to the actual file names. In the mean time Ctrl+c does not stop shell. Shell continues with resolving the wildcards. The Ctrl+c takes effect only after shell resolves the wildcard, and that can quite a bit of time. Is there a way to stop the shell while it is trying to expand the wildcard? (HowTos)