Wildcards in apt-get commands don't work (using zsh)

Bug #1336315 reported by JW
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Boot-Repair
Won't Fix
Low
Unassigned

Bug Description

At a certain point, boot-repair asks me to "open a terminal then type the following commands". One of these commands is something like (I don't remember exactly):

    sudo apt-get purge grub*

However, I'm using zsh, and this doesn't work. Apparently * is seen as a wildcard and expanded into a list of files starting with "grub" in the current directory. (In the best case, there are no such files, so the command becomes a no-op: `sudo apt-get purge`).

This is fixed by surrounding the package name with quotes:

    sudo apt-get purge "grub*"

So it is passed as-is to apt-get, which will expand it correctly.

(In the actual command, there were two packages containing a *, IIRC.)

Revision history for this message
YannUbuntu (yannubuntu) wrote :

thanks JW for the report.
Which distribution are you using? is zsh installed by default in that distribution?

Changed in boot-repair:
status: New → Incomplete
Revision history for this message
JW (jw-00000) wrote :

I'm using Ubuntu and chose to use zsh.

Revision history for this message
YannUbuntu (yannubuntu) wrote :

ok thank you

Changed in boot-repair:
status: Incomplete → New
importance: Undecided → Low
YannUbuntu (yannubuntu)
Changed in boot-repair:
status: New → Won't Fix
Revision history for this message
YannUbuntu (yannubuntu) wrote :

Please reopen if a mainstream distribution starts using zsh by default.
Thx

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.