[MacPorts] #44558: bash-completion on ssh hostname adds bad function, causes syntax errors

MacPorts noreply at macports.org
Tue Aug 19 11:01:36 PDT 2014


#44558: bash-completion on ssh hostname adds bad function, causes syntax errors
--------------------------------+----------------------
  Reporter:  Daniel.Lipofsky@…  |      Owner:  raimue@…
      Type:  defect             |     Status:  new
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:  2.3.1
Resolution:                     |   Keywords:
      Port:  bash-completion    |
--------------------------------+----------------------

Comment (by larryv@…):

 It looks like the child shells you’re running are inheriting the parent’s
 bash-completion functions, but they’re not sourcing `bash-completion.sh`
 itself, which handles necessary setup like enabling `extglob`. (Child
 shells do not inherit their parents’ options, so all the `bash`
 invocations you’ve been testing with have `extglob off`.)

 At a quick glance, it doesn’t look like bash-completion exports its
 functions to the environment, so I don’t know why your functions are being
 inherited by child shells. You could try temporarily commenting out
 everything in your startup scripts except for the bash-completion bit and
 seeing whether that produces any results.

-- 
Ticket URL: <https://trac.macports.org/ticket/44558#comment:13>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list