atom/atom

file ends with colon open but content isnt read

Open

#20,077 创建于 2019年10月28日

在 GitHub 查看
 (12 评论) (1 反应) (0 负责人)JavaScript (60,802 star) (17,233 fork)batch import
d ⬆️good first issuehacktoberfesti ⬇️linuxtriagedv ⬇️

描述

Edit by @rsese to add more specific repro steps

  1. echo "123" > a:
  2. Application: Open File (Ctrl+O on Linux)
  3. Select the file from step 1

Expect the a: file to open, actual behavior is an empty a titled tab is open.

Seems : is legal though maybe not ideal for a filename on Linux? : is illegal for a filename on Windows and I'm not sure about macOS behavior if it's specifically an illegal character but the behavior was the same on macOS 10.14.6 (except the file open dialog showed a/ in the open dialog).

Prerequisites

Description

Steps to Reproduce

  1. create file a:
  2. write to it
  3. open with atom

Expected behavior:

open the content

Actual behavior:

not open the content

Reproduces how often:

Versions

Atom : 1.37.0 Electron: 2.0.18 Chrome : 61.0.3163.100 Node : 8.9.3 debian

Additional Information

im using atom 1.37 x64 version on linux. i tried to open a file that ends with ':' and it opened but content of file didn't load. it loaded it empty.

贡献者指南