Trailing space in file name

Bug #1926880 reported by Iwanna Beer on 2021-05-02
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bash (Ubuntu)

Bug Description

I'm running Ubuntu (Linux osboxes 5.8.0-50-generic #56~20.04.1-Ubuntu SMP Mon Apr 12 21:46:35 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux) in VirtualBox VM.

Filenames ending with windows CR (CRLF) contains trailing space in name.

Steps to reproduce:
copied filename on windows host (Wordpad) and pasted to Ubuntu shell (same with `touch`)
osboxes@osboxes:~/dev/eXtraGames/02$ vim
osboxes@osboxes:~/dev/eXtraGames/02$ ls  stdin test
osboxes@osboxes:~/dev/eXtraGames/02$ mv
mv: cannot stat '': No such file or directory
osboxes@osboxes:~/dev/eXtraGames/02$ mv
osboxes@osboxes:~/dev/eXtraGames/02$ ls stdin test
osboxes@osboxes:~/dev/eXtraGames/02$ mv
osboxes@osboxes:~/dev/eXtraGames/02$ ls stdin test

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: bash 5.0-6ubuntu1.1
ProcVersionSignature: Ubuntu 5.8.0-50.56~20.04.1-generic 5.8.18
Uname: Linux 5.8.0-50-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.16
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Sun May 2 14:19:43 2021
InstallationDate: Installed on 2020-05-03 (364 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
 PATH=(custom, no user)
SourcePackage: bash
UpgradeStatus: No upgrade log present (probably fresh install)

Iwanna Beer (malkbc) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers