aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar KlzXS <azszwymmvqdi@yahoo.com>2020-06-27 17:46:17 +0000
committerGravatar GitHub <noreply@github.com>2020-06-27 23:16:17 +0530
commit45d96ee60dabaaf66c03a9a743841f6a15f792ce (patch)
tree3ea229bfe3de7bb0055441a93b477c579c6d2390 /src
parentcb9e7851459d01f513cc02257ebca37b5c6ca7a7 (diff)
downloadnnn-45d96ee60dabaaf66c03a9a743841f6a15f792ce.tar.gz
Add relative paths support for cp/mv as (#668)
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 512e2cf..cb407df 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -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",