Skip to content

diskr, diskw convert filenames to lower case in Linux #79

@jlturriff

Description

@jlturriff

Linux filesystems are case-sensitive, but when files are read or written via the < (diskr) or > (diskw) (or presumably >> (diska)) stages, their filenames are translated to lower-case, and then the stages are not able to find them.

Example:

$ cat FixSpaces.njp
pipe (fixSpaces debug 128)
< TestFileIn.html |
change /&#160;/ / |
> TestFileOut.html

$ pipc FixSpaces
pipe (fixSpaces debug 128) < TestFileIn.html | change /&#160;/ / | TestFileOut.html

$ ls -l *ixSpaces* *.html
-rw-r--r-- 1 leslie users 3732 2025-10-21 06:43 fixSpaces.class
-rw-r--r-- 1 leslie users 89 2025-10-21 06:40 FixSpaces.njp
-rw-r--r-- 1 leslie users 0 2025-10-21 06:39 TestFileIn.html <== TestFileIn

$ java fixSpaces
Arg diskr_1 = testfilein.html <== testfilein (!)
Arg change_2 = /&#160;/ /
Arg diskw_3 = testfileout.html <== testfileout (!)
RC=13

openSUSE
VERSION = 15.6
NetRexx portable processor 5.01-GA build 4-20250502-1546
Copyright (c) RexxLA, 2011,2025. All rights reserved.
Parts Copyright (c) IBM Corporation, 1995,2008.
Program version.nrx
Compilation of 'version.nrx' successful

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions