diff options
author | KlzXS <azszwymmvqdi@yahoo.com> | 2020-06-27 17:46:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-27 23:16:17 +0530 |
commit | 45d96ee60dabaaf66c03a9a743841f6a15f792ce (patch) | |
tree | 3ea229bfe3de7bb0055441a93b477c579c6d2390 /src | |
parent | cb9e7851459d01f513cc02257ebca37b5c6ca7a7 (diff) | |
download | nnn-45d96ee60dabaaf66c03a9a743841f6a15f792ce.tar.gz |
Add relative paths support for cp/mv as (#668)
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -660,7 +660,7 @@ static const char * const toks[] = { static const char * const patterns[] = { "sed -i 's|^\\(\\(.*/\\)\\(.*\\)$\\)|#\\1\\n\\3|' %s", - "sed 's|^\\([^#][^/]\\?.*\\)$|%s/\\1|;s|^#\\(/.*\\)$|\\1|' " + "sed 's|^\\([^#/][^/]\\?.*\\)$|%s/\\1|;s|^#\\(/.*\\)$|\\1|' " "%s | tr '\\n' '\\0' | xargs -0 -n2 sh -c '%s \"$0\" \"$@\" < /dev/tty'", "\\.(bz|bz2|gz|tar|taz|tbz|tbz2|tgz|z|zip)$", "sed -i 's|^%s\\(.*\\)$|%s\\1|' %s", |