ldif: support de dumpcsv et printcsv dans get_transform_cmd()

This commit is contained in:
Jephté Clain 2016-03-01 18:32:25 +04:00
parent d661e439cb
commit c46626cdc2
1 changed files with 10 additions and 0 deletions

View File

@ -1205,6 +1205,10 @@ mergecsv [OPTIONS] LEFT RIGHT -k FIELD
$(sed 's/^/ /g' <<<"$__MERGECSV_HELP")
sortcsv [OPTIONS] INPUT -k FIELD
$(sed 's/^/ /g' <<<"$__SORTCSV_HELP")
dumpcsv [OPTIONS] FIELDS...
$(sed 's/^/ /g' <<<"$__DUMPCSV_HELP")
printcsv [OPTIONS] VALUES...
$(sed 's/^/ /g' <<<"$__PRINTCSV_HELP")
lsed ARGS
lawk ARGS
@ -1214,6 +1218,8 @@ lawkrun [ARGS]
lawkcsv [OPTIONS] [ATTRS...]
lmergecsv [OPTIONS] LEFT RIGHT -k FIELD
lsortcsv [OPTIONS] INPUT -k FIELD
ldumpcsv [OPTIONS] FIELDS...
lprintcsv [OPTIONS] VALUES...
Ces commandes sont comme les commandes sans le préfixe 'l', mais elles sont
lancées sans LANG=C, ce qui fait qu'elle tiennent compte de la locale.
En effet, les outils de coreutils utilisent les règles de la locale pour le
@ -1351,6 +1357,10 @@ function get_transform_cmd() {
lmergecsv) cmdparts=(lmergecsv "$@");;
sortcsv|csortcsv) cmdparts=(csortcsv "$@");;
lsortcsv) cmdparts=(lsortcsv "$@");;
dumpcsv|cdumpcsv) cmdparts=(cdumpcsv "$@");;
ldumpcsv) cmdparts=(ldumpcsv "$@");;
printcsv|cprintcsv) cmdparts=(cprintcsv "$@");;
lprintcsv) cmdparts=(lprintcsv "$@");;
f|format) cmdparts=(tl_format "$@");;
fcsv|formatcsv|format_csv|csv) cmdparts=(tl_formatcsv "$@");;
pcsv|parsecsv|parse_csv) cmdparts=(tl_parsecsv "$@");;