diff --git a/localization/po/de.po b/localization/po/de.po index f73d57358..5846d53e1 100644 --- a/localization/po/de.po +++ b/localization/po/de.po @@ -507,10 +507,6 @@ msgstr "" msgid "%s: Missing -- separator" msgstr "%s: Fehlendes '--'-Trennzeichen" -#, c-format -msgid "%s: New limit cannot be an empty string" -msgstr "%s: Neues Limit darf keine leere Zeichenkette sein" - #, c-format msgid "%s: No binding found for key '%s'" msgstr "" diff --git a/localization/po/en.po b/localization/po/en.po index 6cbf9aa10..ae75dd7e9 100644 --- a/localization/po/en.po +++ b/localization/po/en.po @@ -507,10 +507,6 @@ msgstr "" msgid "%s: Missing -- separator" msgstr "" -#, c-format -msgid "%s: New limit cannot be an empty string" -msgstr "" - #, c-format msgid "%s: No binding found for key '%s'" msgstr "%s: No binding found for key “%s”" diff --git a/localization/po/es.po b/localization/po/es.po index bfce044a6..15382f427 100644 --- a/localization/po/es.po +++ b/localization/po/es.po @@ -507,10 +507,6 @@ msgstr "%s: La opción larga '%s' ya está definida" msgid "%s: Missing -- separator" msgstr "%s: Falta el separador --" -#, c-format -msgid "%s: New limit cannot be an empty string" -msgstr "%s: El nuevo límite no puede ser un string vacío" - #, c-format msgid "%s: No binding found for key '%s'" msgstr "%s: No se encontró una asignación para la tecla '%s'" diff --git a/localization/po/fr.po b/localization/po/fr.po index 102006dda..1cbcadd39 100644 --- a/localization/po/fr.po +++ b/localization/po/fr.po @@ -636,10 +636,6 @@ msgstr "" msgid "%s: Missing -- separator" msgstr "%s : Séparateur -- manquant" -#, c-format -msgid "%s: New limit cannot be an empty string" -msgstr "%s : La nouvelle limite ne peut être une chaîne vide" - #, c-format msgid "%s: No binding found for key '%s'" msgstr "%s : Aucun lien trouvé pour la combinaison %s" diff --git a/localization/po/ja_JP.po b/localization/po/ja_JP.po index ccddd04a4..f879d64ab 100644 --- a/localization/po/ja_JP.po +++ b/localization/po/ja_JP.po @@ -506,10 +506,6 @@ msgstr "%s: ロングフラグ '%s' はすでに定義されています" msgid "%s: Missing -- separator" msgstr "%s: -- セパレータがありません" -#, c-format -msgid "%s: New limit cannot be an empty string" -msgstr "%s: 新しい制限値を空文字列にすることはできません" - #, c-format msgid "%s: No binding found for key '%s'" msgstr "%s: キー '%s' のバインドが見つかりません" diff --git a/localization/po/pl.po b/localization/po/pl.po index 342e5e742..92a5eb98d 100644 --- a/localization/po/pl.po +++ b/localization/po/pl.po @@ -503,10 +503,6 @@ msgstr "" msgid "%s: Missing -- separator" msgstr "" -#, c-format -msgid "%s: New limit cannot be an empty string" -msgstr "" - #, c-format msgid "%s: No binding found for key '%s'" msgstr "" diff --git a/localization/po/pt_BR.po b/localization/po/pt_BR.po index 1f4cdeefd..3d98b3a89 100644 --- a/localization/po/pt_BR.po +++ b/localization/po/pt_BR.po @@ -508,10 +508,6 @@ msgstr "" msgid "%s: Missing -- separator" msgstr "" -#, c-format -msgid "%s: New limit cannot be an empty string" -msgstr "" - #, c-format msgid "%s: No binding found for key '%s'" msgstr "" diff --git a/localization/po/sv.po b/localization/po/sv.po index ac946f065..3ac0f1a96 100644 --- a/localization/po/sv.po +++ b/localization/po/sv.po @@ -504,10 +504,6 @@ msgstr "" msgid "%s: Missing -- separator" msgstr "" -#, c-format -msgid "%s: New limit cannot be an empty string" -msgstr "" - #, c-format msgid "%s: No binding found for key '%s'" msgstr "" diff --git a/localization/po/zh_CN.po b/localization/po/zh_CN.po index 3baf7ce26..d92b09afa 100644 --- a/localization/po/zh_CN.po +++ b/localization/po/zh_CN.po @@ -528,10 +528,6 @@ msgstr "%s: 长标识 '%s' 已定义" msgid "%s: Missing -- separator" msgstr "%s: 缺少 -- 分隔符" -#, c-format -msgid "%s: New limit cannot be an empty string" -msgstr "%s: 新限制不能为空字符串" - #, c-format msgid "%s: No binding found for key '%s'" msgstr "%s: 未找到键 '%s' 的绑定" diff --git a/localization/po/zh_TW.po b/localization/po/zh_TW.po index 2c89c4550..2e566a635 100644 --- a/localization/po/zh_TW.po +++ b/localization/po/zh_TW.po @@ -501,10 +501,6 @@ msgstr "%s:定義過長旗標「%s」了" msgid "%s: Missing -- separator" msgstr "%s:缺少 -- 分隔" -#, c-format -msgid "%s: New limit cannot be an empty string" -msgstr "%s:新的限制不能是空字串" - #, c-format msgid "%s: No binding found for key '%s'" msgstr "%s:找不到按鍵「%s」的綁定" diff --git a/src/builtins/ulimit.rs b/src/builtins/ulimit.rs index 7589ddb65..b14367960 100644 --- a/src/builtins/ulimit.rs +++ b/src/builtins/ulimit.rs @@ -370,14 +370,8 @@ pub fn ulimit(parser: &Parser, streams: &mut IoStreams, args: &mut [&wstr]) -> B BUILTIN_ULIMIT_INVALID "%s: Invalid limit '%s'" } - let new_limit: rlim_t = if w.wopt_index == argc { - streams.err.appendln(&wgettext_fmt!( - "%s: New limit cannot be an empty string", - cmd - )); - builtin_print_error_trailer(parser, streams.err, cmd); - return Err(STATUS_INVALID_ARGS); - } else if wcscasecmp(w.argv[w.wopt_index], L!("unlimited")) == Ordering::Equal { + let new_limit: rlim_t = if wcscasecmp(w.argv[w.wopt_index], L!("unlimited")) == Ordering::Equal + { RLIM_INFINITY } else if wcscasecmp(w.argv[w.wopt_index], L!("hard")) == Ordering::Equal { match get(what, true) {