You have been subscribed to a public bug:

OS version: Linux Mint 20.2 Cinnamon
Cinnamon version: 5.0.7

There are several missed quote paires in /etc/profile and wrong operator
used. So this config should be fixed as follows:

# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ "${PS1-}" ]; then
  if [ "${BASH-}" ] && [ "$BASH" != "/bin/sh" ]; then
    # The file bash.bashrc already sets the default PS1.
    # PS1='\h:\w\$ '
    if [ -r /etc/bash.bashrc ]; then # -f replaced with -r
      . /etc/bash.bashrc
    fi
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi

if [ -d /etc/profile.d ]; then
  for i in /etc/profile.d/*.sh; do
    if [ -r "$i" ]; then # Missed quotes added
      . "$i" # Missed quotes added
    fi
  done
  unset i
fi

** Affects: base-files (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: bot-comment
-- 
Some mistakes in /etc/profile
https://bugs.launchpad.net/bugs/1952895
You received this bug notification because you are a member of Ubuntu Touch 
seeded packages, which is subscribed to base-files in Ubuntu.

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to