|
From: | Paul Eggert |
Subject: | bug#55937: [PATCH] touch: create parent directories if needed |
Date: | Tue, 14 Jun 2022 21:37:36 -0500 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 |
On 6/14/22 19:20, Alan Rosenthal wrote:
`touch -p a/b/c/d/e` will now be the same as running: `mkdir -p a/b/c/d && touch a/b/c/d/e`.
I don't see how this useful enough to merit a change, since one can achieve the effect of the proposed "touch -p" with the already-existing "mkdir -p" followed by plain "touch". mkdir -p already exists and should work everywhere that's POSIX-compatible. We don't need -p for other commands that create files (e.g., cp, mv, ln); what's special about 'touch'?
[Prev in Thread] | Current Thread | [Next in Thread] |