Procházet zdrojové kódy

use -0 for null delimited output in line with many other GNU tools

Daniel Sheffield před 3 měsíci
rodič
revize
184b7203f7
1 změnil soubory, kde provedl 4 přidání a 3 odebrání
  1. 4 3
      recall.sh

+ 4 - 3
recall.sh

@@ -36,11 +36,11 @@ the captured exit status.
 
     - List paths null delimited for pipe (in case of paths with new line char)
 
-      ${0##*/} -l -z find | xargs -r -0 ls -lahd
+      ${0##*/} -l -0 find | xargs -r -0 ls -lahd
 EOF
 }
 
-OPTSTRING=":hln:z"
+OPTSTRING=":hln:0"
 parse_opt () {
 	case "${opt}" in
 		h)
@@ -61,7 +61,7 @@ parse_opt () {
 				exit 1
 			fi
 		;;
-		z)
+		0)
 			ORS='\0'
 		;;
 		\?)
@@ -190,5 +190,6 @@ else
 	INF="$LOG_DIR"/info
 	. <(tail -n +2 "$INF")
 	cat "$OUT"
+	#TODO: allow configure exit status
 	exit "$status"
 fi