Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • T tails
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 983
    • Issues 983
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 38
    • Merge requests 38
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • tails
  • tails
  • Issues
  • #9371
Closed
Open
Issue created May 11, 2015 by anonym@anonymMaintainer

Use 'set -u' in gettextized shell scripts

Originally created by @anonym on #9371 (Redmine)

So far we’ve been avoiding it, see e.g. this comment from config/chroot_local-includes/usr/local/bin/tor-browser:

# Do not "set -u", else importing gettext.sh dies
# with "ZSH_VERSION: parameter not set".

However, we can actually set -u as long as we set:

ZSH_VERSION="${ZSH_VERSION:-}"

before sourcing gettext.sh in each such script (see git grep "\. gettext\.sh" for a list of candidates).

Feature Branch: feature/9371-set-u-in-gettextized-shell-scripts

Parent Task: #9372

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking