Public bug reported:

Hi there,

I believe there is an axtra carriage return in the function has_option()
in the file /etc/X11/Xsession.d/20x11-common_process-args.  The function
is defined as:

has_option() {
  if [ "${OPTIONS#*
$1}" != "$OPTIONS" ]; then
    return 0
  else
    return 1
  fi
}

however it looks like there is an extra carriage return after the *.  I
believe the function should look like this:

has_option() {
  if [ "${OPTIONS#*$1}" != "$OPTIONS" ]; then
    return 0
  else
    return 1
  fi
}

Thanks.

** Affects: gnome-session (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-session in Ubuntu.
https://bugs.launchpad.net/bugs/1672566

Title:
  Extra carriage return in 20x11-common_process-args

Status in gnome-session package in Ubuntu:
  New

Bug description:
  Hi there,

  I believe there is an axtra carriage return in the function
  has_option() in the file /etc/X11/Xsession.d/20x11-common_process-
  args.  The function is defined as:

  has_option() {
    if [ "${OPTIONS#*
  $1}" != "$OPTIONS" ]; then
      return 0
    else
      return 1
    fi
  }

  however it looks like there is an extra carriage return after the *.
  I believe the function should look like this:

  has_option() {
    if [ "${OPTIONS#*$1}" != "$OPTIONS" ]; then
      return 0
    else
      return 1
    fi
  }

  Thanks.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1672566/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to