summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-11-14 19:52:39 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-11-14 19:52:39 +0000
commit3e09f26dc20faf5041ca01f2bebcd72ef28954b3 (patch)
tree9090378b0f08b8d75a25473583582bb75221d9b8 /src
parent6a8ad83ba6e4e459500817ff86893cd33385bb63 (diff)
downloadexecline-3e09f26dc20faf5041ca01f2bebcd72ef28954b3.tar.gz
execline-3e09f26dc20faf5041ca01f2bebcd72ef28954b3.tar.xz
execline-3e09f26dc20faf5041ca01f2bebcd72ef28954b3.zip
- more intuitive error message for backtick without a remainder
 - rc for 2.1.4.5
Diffstat (limited to 'src')
-rw-r--r--src/execline/backtick.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/execline/backtick.c b/src/execline/backtick.c
index 41b95d6..2deb9f3 100644
--- a/src/execline/backtick.c
+++ b/src/execline/backtick.c
@@ -53,6 +53,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
       newargv[m++] = argv[i++] ;
     if (!argv[i]) strerr_dief1x(100, "unterminated block") ;
     newargv[m++] = "" ; i++ ;
+    if (!argv[i]) strerr_dief1x(100, "empty remainder") ;
     newargv[m++] = EXECLINE_BINPREFIX "withstdinas" ;
     if (insist) newargv[m++] = "-i" ;
     if (chomp) newargv[m++] = "-n" ;