David A. Wheeler personal blog

Filenames and pathnames in shell: How to do it correctly (2020)

This article explains how to correctly handle filenames in Bourne shells (the primary shell of Unix/Linux/POSIX systems), based on the issues discussed in 'Fixing Unix/Linux/Filenames'. Many programs fail to work properly on filenames that include spaces, begin with dash (-), include newlines, and so on, because…
Points
219
HN comments
149
Submissions
2
Cited by
11 commenters

Software EngineeringSystems & Performance2023

On Hacker News

SubmittedTitle on HNPointsComments
Jun 19, 2023Filenames and pathnames in shell: How to do it correctly (2020) by ingve219129
Feb 9, 2015Filenames and Pathnames in Shell: How to Do It Correctly (2010) by thefox8520

Cited in comments

Linked from 13 Hacker News comments by 11 different people, from Aug 2014 to Aug 2023.

Most recent:

Search every comment that links here →

More from David A. Wheeler

All 9 posts →

Related posts from the same era