5 ms·
$ cp foo /real/long/path/name/to/destination/ /real/long/path/name/to/destination/: no such file or directory Why doesn't it tell me which component was wrong?
by MichaelCrawford 11y ago
$ cp foo /real/long/path/name/to/destination/
/real/long/path/name/to/destination/: no such file or directory
Why doesn't it tell me which component was wrong?
- aidos 11y agoThat's so insanely obvious in retrospecr. I guess there's a tiny performance hit - but surely not enough to not implement this idea. Kudos. Like it. Edit - I generally tab complete my paths so it wouldn't help me out that often. But there are definitely times where that litte extra messaging would help. Hell, why not a fuzzy "did you mean" message
- bane 11y agoI'm still surprised I have to remember things like parameter order and that parameters don't have some kind of auto complete yet. Or that I don't get hints or definitions of parameters as I'm building up the command.
- pwg 11y agoWhat version of cp is this? Because I get this: $ cp foo /real/long/path/name/to/destination/ /real/long/path/name/to/destination/ cp: target '/real/long/path/name/to/destination/' is not a directory With this version: $ cp --version cp (GNU coreutils) 8.21 ...
- heinrich5991 11y agoThey complained that it doesn't show cp: target '/real/' is not a directory
- jblow 11y agoGoing further, why doesn't your shell show you while you're typing? I have seen one or two application programs that do this and it is VERY helpful.