From 6d216933f307bdb946d569510853003fafea3c45 Mon Sep 17 00:00:00 2001 From: Mathieu Othacehe Date: Sun, 25 Feb 2018 11:32:30 +0100 Subject: [PATCH] Use 'ls -1' to list files with toybox ls * lisp/net/tramp-adb.el (tramp-adb-get-ls-command): Use 'ls -1' instead of passing COLUMNS=1 env variable. This is isofunctional. --- lisp/net/tramp-adb.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/net/tramp-adb.el b/lisp/net/tramp-adb.el index 6257f84d6f..3f4de93bc5 100644 --- a/lisp/net/tramp-adb.el +++ b/lisp/net/tramp-adb.el @@ -470,7 +470,7 @@ tramp-adb-get-ls-command ;; Can't disable coloring explicitly for toybox ls command. We ;; also must force "ls" to print just one column. ((tramp-adb-send-command-and-check vec "toybox") - "env COLUMNS=1 ls") + "ls -1") ;; On CyanogenMod based system BusyBox is used and "ls" output ;; coloring is enabled by default. So we try to disable it when ;; possible. -- 2.16.1