allow --lang=? and --vcs=? without project name
1 files changed, 5 insertions(+), 4 deletions(-)

M conf.in
M conf.in +5 -4
@@ 254,12 254,13 @@ function run_new () {
     done
 
     if test x"${ARG_LANG}" = x"?"; then
-        (cd "${TEMPLATES}" ; ls -d */ | grep -v -- "--" | sed s,/,,g)
+        (cd "${TEMPLATES}" ; ls -d */ | grep -v -- "--" | sed s,/,,g | xargs)
         exit 0
-    if test x"${ARG_VCS}" = x"?"; then
-        (cd "${TEMPLATES}" ; ls -d vcs--*/ | sed s/vcs--// | sed s,/,,g)
+    elif test x"${ARG_VCS}" = x"?"; then
+        (cd "${TEMPLATES}" ; ls -d vcs--*/ | sed s/vcs--// | sed s,/,,g | xargs)
         exit 0
-
+    fi
+    
     if test x"${PROJ}" = x""; then
         if test x"${1}" = x"/"; then
             echo "project name / is forbidden"