Hi Jean, On 11/18/25 2:43 AM, Jean Delvare wrote: > Hi Randy, > > On Wed, 2025-11-12 at 22:18 -0800, Randy Dunlap wrote: >> "quilt pop -h" says: >> >> .... Patch >> names may include the patches/ prefix, which means that filename >> completion can be used. >> >> This doesn't work for me, with or without theĀ ".patch" suffix. >> It works when "patches/" is omitted and using the filename >> with or without the .patch suffix. >> >> quilt version: 0.69 > > This statement in the help text is very old (2004) and rather confusing > in my opinion, because there is nothing special about the completion or > parameter handling of the pop command.
I do have bash completion. And the quilt package (openSUSE Tumbleweed) includes the file /usr/share/bash-completion/completions/quilt. > If you do have bash completion installed, the pop command will attempt > to complete on the output of "quilt --quiltrc - applied". These are the > applied patch names without the "patches/" prefix. From your report, I > think you do have the quilt bash completion script installed. Yes. ARGH. I have found the problem and it is me. :( "quilt" is too long. I am using a 2-letter alias for quilt. If I use "quilt" instead, quilt completion works as expected. > If you don't have bash completion installed, the pop command completion > will naturally fall back to shell paths, so you would need to type > "patches/" first and then you can complete with a patch file name. In > that case, there's no check done on the patch state, so you could > complete with an unapplied patch, which would be invalid. $ quilt pop pat<TAB> does not complete. Don't know if it is supposed to or not. $ quilt pop patches/tools-<TAB> does not complete (where I have a patch file name that begins with "tools-"). $ quilt pop tools-<TAB> does complete successfully. $ quilt push power-supply<TAB> does complete successfully. $ quilt push patches/power-supply<TAB> does not complete the patch filename. > In both cases, the pop command accepts both raw patch file names, and > patch file names prefixed with "patches/", for convenience. I just > tested and that works for me. Your report suggests it did not work for > you, but I suspect that you got confused by the completion mechanism, > so please double-check. I still think that there are some problems (after switching to use the "quilt" command). But I don't depend on these command variants, so it's not critical to me. > I think we should drop this statement from the documentation (for both > the pop and the push commands), as it causes more confusion than it > helps, because most users will have bash completion installed while the > statement essentially describes the behavior without it. Instead we > could add a generic statement about how patch file names passed as an > option to any quilt command can optionally be prefixed with "patches/". I agree. Sorry for the (my) confusion. Thanks for your help. -- ~Randy _______________________________________________ Quilt-dev mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/quilt-dev
