uutils / coreutils

Cross-platform Rust rewrite of the GNU coreutils
https://uutils.github.io/
MIT License
17.61k stars 1.27k forks source link

'ls' display bug #6440

Closed ZengGengSen closed 2 months ago

ZengGengSen commented 4 months ago

When using ssh to connect to a terminal on another windows system, there is a problem with the file displayed

image

tertsdiepraam commented 4 months ago

Hmmm, it's a miscalculation around the quotes probably. There were some recent changes around that

sylvestre commented 4 months ago

please don't share screenshot. They are terrible for accessibility and search use ``` instead

ZengGengSen commented 4 months ago
 Apps        Drivers              PerfLogs                Python27     Qt           Users                     del.bat   lua-5.3.5_Win64_bin
 Dell        Intel               'Program Files'         Python38     Qt5          Windows                   extres    temp
 Downloads   KDubaSoftDownloads  'Program Files (x86)'   QMDownload   Strawberry   aow-install-apk-100.xml   global
ZengGengSen commented 4 months ago

In some directories, this is not the case

forest on  C:/
# ls
 Apps        Drivers              PerfLogs                Python27     Qt           Users                     del.bat   lua-5.3.5_Win64_bin
 Dell        Intel               'Program Files'         Python38     Qt5          Windows                   extres    temp
 Downloads   KDubaSoftDownloads  'Program Files (x86)'   QMDownload   Strawberry   aow-install-apk-100.xml   global

forest on  C:/
# cd /D D:\work\work2405\emulators\libretro\libretro-fceumm\                                                                                                
forest on  D:/work/work2405/emulators/libretro/libretro-fceumm  master
# ls
.github     .gitlab-ci.yml  Authors  Makefile         Makefile.libretro  Tupfile       changelog.txt  intl  mason.build  whatsnew.txt
.gitignore  .travis.yml     Copying  Makefile.common  README.md          appveyor.yml  control        jni   src          zzz_todo.txt

forest on  D:/work/work2405/emulators/libretro/libretro-fceumm  master
#
ZengGengSen commented 4 months ago

I tried to add a file with a space in it, and this happened

 forest on  D:/work/work2405/emulators/libretro/libretro-fceumm  master
 # ls
 .github      .gitlab-ci.yml   Authors   Makefile          Makefile.libretro   Tupfile   appveyor.yml    control   jni           src            zzz_todo.txt
 .gitignore   .travis.yml      Copying   Makefile.common   README.md          'a b'     changelog.txt   intl      mason.build   whatsnew.txt
ZengGengSen commented 4 months ago

In some cases, the file name of the previous line is output to the next line

 forest on  ~
 # ls
 .AndroidStudio3.6   .bash_history   .jdks               .wget-hsts     Downloads   Nox_share       UIDowner                              delete       source
 .BigNox             .config         .lesshst           '3D Objects'   Favorites   OneDrive        Videos                                inittk.ini   useruid.
ini
 .VirtualBox         .designer       .oracle_jre_usage   Contacts       Links       Pictures       'Yinxiang Biji'                       inst.ini     vmlogs
 .WebStorm2019.2     .gitconfig      .ssh                Desktop        Music      'Saved Games'   ansel                                 nuuid.ini    约战竞技
场
 .android            .gradle         .vscode             Documents      NSIS        Searches        d4ac4633ebd6440fa397b84f1bc94a3c.7z   other
ivinjabraham commented 4 months ago

I'll try looking into this

Its-Just-Nans commented 3 months ago

Tried to reproduce but seems like

RenjiSann commented 2 months ago

@ZengGengSen can you share the version of uutils with which you encountered the bug ? This should have been addressed in 0.0.27, so it is normal to encounter the bug in previous versions.

ZengGengSen commented 2 months ago

The bug has been resolved in 0.0.27