Skip to content

date -r/--reference 的操作数未过方言折叠(date.cpp:1208 read_reference_time 走 GetFileAttributesExW)——#1253 CR nit1,#1230 sweep 跟随 #1256

Closed

Description

@caomengxuan666

来源:PR #1253(#1239 date -f 方言修复)CR nit1——date.cpp 内同族第二读取点:-f 已折叠(#1239),但 -r/--reference 的 read_reference_time 仍把原操作数直接交给 GetFileAttributesExW,方言形(/e/...、/cygdrive/e、/mnt/e)会落 cwd 盘。

验收

PS 原生 argv 矩阵:date -r /e/probe/file × 双 cwd 落点/读出见证(oracle=MSYS date + PowerShell);影子负例;#1253 的 3 例 date 回归不回退。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions