[Bug 1926880] [NEW] Trailing space in file name
Iwanna Beer
1926880 at bugs.launchpad.net
Sun May 2 11:57:44 UTC 2021
Public bug reported:
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 at osboxes:~/dev/eXtraGames/02$ vim 07_extract_snippets.sh
osboxes at osboxes:~/dev/eXtraGames/02$ ls
07_extract_snippets.sh stdin test
osboxes at osboxes:~/dev/eXtraGames/02$ mv 07_extract_snippets.sh 07.sh
mv: cannot stat '07_extract_snippets.sh': No such file or directory
osboxes at osboxes:~/dev/eXtraGames/02$ mv 07_extract_snippets.sh 07.sh
osboxes at osboxes:~/dev/eXtraGames/02$ ls
07.sh stdin test
osboxes at osboxes:~/dev/eXtraGames/02$ mv 07.sh 07_extract_snippets.sh
osboxes at 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)
** Affects: bash (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug focal
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/1926880
Title:
Trailing space in file name
Status in bash package in Ubuntu:
New
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 at osboxes:~/dev/eXtraGames/02$ vim 07_extract_snippets.sh
osboxes at osboxes:~/dev/eXtraGames/02$ ls
07_extract_snippets.sh stdin test
osboxes at osboxes:~/dev/eXtraGames/02$ mv 07_extract_snippets.sh 07.sh
mv: cannot stat '07_extract_snippets.sh': No such file or directory
osboxes at osboxes:~/dev/eXtraGames/02$ mv 07_extract_snippets.sh 07.sh
osboxes at osboxes:~/dev/eXtraGames/02$ ls
07.sh stdin test
osboxes at osboxes:~/dev/eXtraGames/02$ mv 07.sh 07_extract_snippets.sh
osboxes at 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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1926880/+subscriptions
More information about the foundations-bugs
mailing list