Timeline for Prevent mv from moving target folder
Current License: CC BY-SA 4.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 25, 2020 at 8:16 | vote | accept | Jonathan H | ||
| Jun 24, 2020 at 17:28 | answer | added | Gilles 'SO- stop being evil' | timeline score: 1 | |
| Jun 24, 2020 at 17:15 | comment | added | Gilles 'SO- stop being evil' | The difference between OSes is down to the behavior of the rename system call, and this looks like a bug in Linux's rename. Why would rename("bar/", "baz") fail with ENOTDIR? It's supposed to be equivalent to rename("foo", "baz"). | |
| Jun 24, 2020 at 16:08 | comment | added | LL3 | @Quasímodo unfortunately in a compspec context that setting is ignored, at least in OSX's bash3.2 | |
| Jun 24, 2020 at 16:06 | comment | added | Quasímodo | Maybe bash 3.2 is a bit too dated? I see it is from 2006. Not much helpful, but for the slash in autocomplete, you may disable it if your bash has mark-symlinked-directories option (look in man bash, "Readline Variables" section). | |
| Jun 24, 2020 at 16:06 | comment | added | LL3 | one way in Bash might be set mark-directories off in a INPUTRC file, but that setting applies to all directories, not just symlinks | |
| Jun 24, 2020 at 16:03 | comment | added | Jonathan H | @ArtemS.Tashkinov Good to know! Weirdly enough though, gmv (installed via brew install coreutils) has the same issue on my side. | |
| Jun 24, 2020 at 15:51 | comment | added | Artem S. Tashkinov | This comment will be useless but Linux coreutils mv doesn't have this issue: mv bar/ baz -> mv: cannot move 'bar/' to 'baz': Not a directory | |
| Jun 24, 2020 at 15:36 | history | asked | Jonathan H | CC BY-SA 4.0 |