From 72f65c751293b91e63556b576a1851ef09e13e91 Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Wed, 25 Feb 2015 11:55:15 +0400 Subject: [PATCH] =?UTF-8?q?possibilit=C3=A9=20de=20d=C3=A9sactiver=20--quo?= =?UTF-8?q?te-empty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ulib/ldif | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ulib/ldif b/lib/ulib/ldif index 49385c4..671857c 100644 --- a/lib/ulib/ldif +++ b/lib/ulib/ldif @@ -750,12 +750,15 @@ function tl_formatcsv() { show_headers=1 vsep=';' qsep='"' + qempty=1 escape= if parse_opts \ -h,--show-headers show_headers=1 \ -n,--no-headers show_headers= \ -R: vsep= \ --quote: qsep= \ + --quote-empty qempty=1 \ + --no-quote-empty qempty= \ --escape: escape \ @ args -- "$@"; then set -- "${args[@]}" @@ -764,7 +767,7 @@ function tl_formatcsv() { return 1 fi - tl_format ${show_headers:+--show-headers} -F , -R "$vsep" --quote "$qsep" --quote-empty --escape "$escape" "$@" + tl_format ${show_headers:+--show-headers} -F , -R "$vsep" --quote "$qsep" ${qempty:+--quote-empty} --escape "$escape" "$@" } function tl_parsecsv() {