💻 Software
GNU sort and git blame
Fresh5 days ago
Mar 15, 20265179 viewsConfidence Score0%
0%
Problem
Today I thought I was doing a simple operation: To get all the lines of sorted by the date on which they were last changed. Unfortunately it doesn't seem to be sorting it correctly. It does work if I do the following: Which just hacks the first part of the line off and then does the sort. The succe…
Error Output
git blame file | sort -k 3
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: GNU sort and git blame
Low Risk
I just figured it out. The shorter username means there's an extra space before the date field. Since the field separator for is a non-blank to blank transition, the date field for the line with the shorter username has that space as part of the key…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix