1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 15:58:50 -05:00
pacman/scripts
Dave Reisner 9e9835f464 scripts: always use printf with embedded gettext
This addresses two problems:

1) echo's behavior is inconsistent when dealing with flags, and can
potentially be problematic.

  $ echo -n
  $ echo -- -n
  -- -n

2) Always using the end of options markers prevents translated strings
from throwing errors, as shown in FS#28069.

The remaining "inconsistencies" are because printf is being used in a
guaranteed safe manner, e.g.

  printf '%s\n' "$(gettext "--this can never break")"

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-01-30 21:31:38 -06:00
..
library parse_options: accept multiple arguments 2011-07-05 10:22:31 -05:00
po Update translations from Transifex 2012-01-05 17:04:42 -06:00
.gitignore Move some .gitignore entries 2011-07-18 10:28:19 -05:00
Makefile.am buildsys: remove existing symlinks before installing 2011-09-14 17:18:07 -05:00
makepkg.sh.in scripts: always use printf with embedded gettext 2012-01-30 21:31:38 -06:00
pacman-db-upgrade.sh.in scripts: always use printf with embedded gettext 2012-01-30 21:31:38 -06:00
pacman-key.sh.in scripts: always use printf with embedded gettext 2012-01-30 21:31:38 -06:00
pacman-optimize.sh.in scripts: always use printf with embedded gettext 2012-01-30 21:31:38 -06:00
pkgdelta.sh.in scripts: always use printf with embedded gettext 2012-01-30 21:31:38 -06:00
rankmirrors.sh.in rankmirrors: properly sort resulting times 2011-09-06 08:44:34 -05:00
repo-add.sh.in scripts: always use printf with embedded gettext 2012-01-30 21:31:38 -06:00