(sort-columns): Use Posix arg syntax for `sort'.

This commit is contained in:
Richard M. Stallman 2006-02-21 19:52:28 +00:00
parent 51a77cba21
commit 12549864fd

View file

@ -499,8 +499,9 @@ Use \\[untabify] to convert tabs to spaces before sorting."
;; in the region, since the sort utility would lose the
;; properties.
(let ((sort-args (list (if reverse "-rt\n" "-t\n")
(concat "+0." (int-to-string col-start))
(concat "-0." (int-to-string col-end)))))
(format "-k1.%d,1.%d"
(1+ col-start)
(1+ col-end)))))
(when sort-fold-case
(push "-f" sort-args))
(apply #'call-process-region beg1 end1 "sort" t t nil sort-args))