From 778442263e3d0bcc79f209b7bd49f5937ade28a5 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 22 Feb 2012 11:46:16 +0000 Subject: [PATCH] Correctly quote tr [:blank:] in OCaml dependency scripts. This fixes: https://bugzilla.redhat.com/show_bug.cgi?id=796149 Signed-off-by: Panu Matilainen --- scripts/ocaml-find-provides.sh | 2 +- scripts/ocaml-find-requires.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/ocaml-find-provides.sh b/scripts/ocaml-find-provides.sh index a4441cb..985709e 100644 --- a/scripts/ocaml-find-provides.sh +++ b/scripts/ocaml-find-provides.sh @@ -32,7 +32,7 @@ done files=`sed "s/['\"]/\\\&/g"` # Get list of .cmi, .cmo and .cma files. -files=`echo $files | tr [:blank:] '\n' | grep '\.cm[ioa]$'` +files=`echo $files | tr '[:blank:]' '\n' | grep '\.cm[ioa]$'` if [ -z "$files" ]; then exit 0; fi diff --git a/scripts/ocaml-find-requires.sh b/scripts/ocaml-find-requires.sh index bee3478..e10e627 100644 --- a/scripts/ocaml-find-requires.sh +++ b/scripts/ocaml-find-requires.sh @@ -34,10 +34,10 @@ done files=`sed "s/['\"]/\\\&/g"` # Use ordinary find-requires first. -# echo $files | tr [:blank:] '\n' | /usr/lib/rpm/find-requires +# echo $files | tr '[:blank:]' '\n' | /usr/lib/rpm/find-requires # Get list of .cmi, .cmo and .cma files. -files=`echo $files | tr [:blank:] '\n' | grep '\.cm[ioa]$'` +files=`echo $files | tr '[:blank:]' '\n' | grep '\.cm[ioa]$'` if [ -z "$files" ]; then exit 0; fi -- 2.7.4