Trailing space in file name

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

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 07_extract_snippets.sh
osboxes@osboxes:~/dev/eXtraGames/02$ ls
07_extract_snippets.sh  stdin test
osboxes@osboxes:~/dev/eXtraGames/02$ mv 07_extract_snippets.sh 07.sh
mv: cannot stat '07_extract_snippets.sh': No such file or directory
osboxes@osboxes:~/dev/eXtraGames/02$ mv 07_extract_snippets.sh  07.sh
osboxes@osboxes:~/dev/eXtraGames/02$ ls
07.sh stdin test
osboxes@osboxes:~/dev/eXtraGames/02$ mv 07.sh 07_extract_snippets.sh
osboxes@osboxes:~/dev/eXtraGames/02$ ls
07_extract_snippets.sh 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)
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
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