Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#75 closed enhancement (fixed)

Consider adding directory support to TOUCH command

Reported by: Lewis Rosenthal Owned by: Steven Levine
Priority: minor Milestone: Version-3.10
Component: Commands Version: 3.09
Keywords: Cc:

Description

Currently, TOUCH only allows setting timestamps on files, but not directories. This is an RFE to add support to TOUCH to change timestamps on directories, as well.

Example:

{0}[j:\] touch /dc04-17-09 /tc00:49:58 f:\1040
SYS0002: The system cannot find the file specified. "F:\1040"

where 1040 is indeed a directory under the root of F:.

Change History (3)

comment:1 Changed 2 years ago by Steven Levine

Owner: set to Steven Levine
Status: newassigned

This has been implemented as of

[d:\tmp]ver /r
4OS2 3.11.2-shl OS/2 Version is 4.50
Build 3.11.2-shl.168 (May 5 2022 16:52:30)

There will be a public release when Gregg returns.

comment:2 Changed 2 years ago by Lewis Rosenthal

Resolution: fixed
Status: assignedclosed

Confirmed implemented and working as expected; thanks.

Tested against JFS and NetWare NSS (using NWIFS.IFS).

This command doesn't like trailing backslashes (SYS0002), however, but that's a minor nit.

comment:3 Changed 2 years ago by Steven Levine

DOS-ish apps never seem to handle trailing slashes sanely without outside help. It's on my list to look at. Feel free to submit an enhancement ticket.

Note: See TracTickets for help on using tickets.