diff options
author | Elliott Hughes <enh@google.com> | 2019-09-07 21:36:28 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-09-09 23:48:50 -0500 |
commit | fb872879a7d7c4c9d184ec7e4b255ea1a85e124e (patch) | |
tree | d179ed7853c3bdff2a40a41d5eb9595ace5256af /tests | |
parent | 1558f3455f1f5f22e25b25284a6a99c698a7fa23 (diff) | |
download | toybox-fb872879a7d7c4c9d184ec7e4b255ea1a85e124e.tar.gz |
ls: fix spacing of -lZ and --full-time.
Two more spacing bugs here, one before the security context for -Z, and
one after the size with --full-time.
Before:
$ ./toybox ls -lZ --full-time Config.
-rw-r----- 1 enh primarygroup? 56162019-09-07 21:09:32.892215100 -0700 Config.in
After:
$ ./toybox ls -lZ --full-time Config.
-rw-r----- 1 enh primarygroup ? 5616 2019-09-07 21:09:32.892215100 -0700 Config.in
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/ls.test | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ls.test b/tests/ls.test index cba0a3de..91f69183 100755 --- a/tests/ls.test +++ b/tests/ls.test @@ -32,6 +32,7 @@ testing "with -m" "$IN && ls -m; $OUT" "dir1, dir2, file1.txt, file2.txt\n" "" " testing "with -F" "$IN && ls -F; $OUT" "dir1/\ndir2/\nfile1.txt\nfile2.txt\n" "" "" testing "with -dk *" "$IN && ls -dk *; $OUT" "dir1\ndir2\nfile1.txt\nfile2.txt\n" "" "" testing "with -Z" "$IN && ls -Z file1.txt | egrep -q '^[^ ]+ file1.txt' || echo fail; $OUT" "" "" "" +testing "with -lZ" "$IN && ls --full-time -lZ file1.txt | egrep -q '^-[rwx-]+ +[0-9]+ +[^ ]+ +[^ ]+ +[^ ]+ +[0-9]+ [0-9][0-9][0-9][0-9]-[0-9][0-9]-.* file1.txt' || echo fail; $OUT" "" "" "" ln -s file1.txt lstest/slink testing "-l symlink" \ |