file name globbing is severely broken

Bug #1068612 reported by Chris Peach
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wajig (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

This happened with the wajig version (2.2) that comes with Ubuntu Server 12.04.1 LTS, fully updated:

When trying to remove old Linux kernels with build numbers 20..29 (but wanting to keep those with build numbers 30..32), I issued this command line in the bash shell:

wajig remove linux-image-3.2.0-2\*

Unfortunately, the asterisk did not work as expected, and wajig offered to remove _all_ Linux kernels from the system, including the packages linux-image-3.2.0-31-generic linux-image-3.2.0-32-generic linux-image-server, and linux-server. Very ugly!

Revision history for this message
Chris Peach (peachris+ubuntu) wrote :

It seems this is a property of apt-get, so wajig is not to blame here.

Revision history for this message
Graham Williams (gjwkayon) wrote :

This is working now with wajig 4.0.3 on ubuntu 23.04:

```
root@localhost:~# wajig remove linux-image-6.2.0-20-*
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'linux-image-6.2.0-20-generic' for glob 'linux-image-6.2.0-20-*'
The following packages will be REMOVED:
  linux-image-6.2.0-20-generic
0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
After this operation, 14.5 MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.
```

Changed in wajig (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.