quilt refresh behaves badly with patched files with spaces in path or filename
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
quilt (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
quilt, the utility to patch files programmatically in linux is not very useful when the files have a space or more in the name or path.
It actually works, but quilt refresh will create a diff file where the file headers, for instance:
--- CQM.orig/dlg/santa monica/jeanette.dlg
+++ CQM/dlg/santa monica/jeanette.dlg
have no tab at the end, so quilt push will actually apply the patch, but quilt pop will say it can't find the files to 'pop'.
git-diff apparently always adds a tab at the end probably to prevent this nonsense.
This is very obscure information, and it's unlikely people will find out, and will simply not use quilt, or worse use it and then discover the limitation much later.
I can't change the names btw. That quilt even allows the option of 'working around' this in this way and that git-diff will do this by default indicate that there is some purity argument going on (even without any idea of the history of this decision), but at least i'd like the option to follow the git-diff format on refreshes so this doesn't happen.
source of the tab information (i verified it works): https:/
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: quilt 0.66-2.1
ProcVersionSign
Uname: Linux 5.15.0-50-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: GNOME
Date: Sun Oct 16 21:34:58 2022
InstallationDate: Installed on 2021-06-05 (498 days ago)
InstallationMedia: Ubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1)
PackageArchitec
SourcePackage: quilt
UpgradeStatus: No upgrade log present (probably fresh install)