[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#5361: bash has option interactive-comments on



Package: bash
Version: 1.14.6-5

Bash detects comments in interactive use, which confuses
<tab> expansion and handling of Emacs auto-save files.

  $ set -o
  ...
  interactive-comments    on
  ...
  $ touch #foo#
  $ touch bar
  $ ls #<tab>
  ->
    ls #foo#
  #foo# bar ... (like just ls)
  $ ls ./#*
  #fóo#

Any token starting with # causes that the rest of the line will be
ignored. This is normal for non-interactive shell but in an interactive
shell it should be disabled. At least, the behaviour of <tab> isn't
logical.

In man bash:

COMMENTS
       In  a  non-interactive  shell,  or an interactive shell in
       which  the  -o  interactive-comments  option  to  the  set
       builtin  is  enabled,  a word beginning with # causes that
       word and all remaining  characters  on  that  line  to  be
       ignored.   An  interactive  shell  without the -o interac­
       tive-comments option enabled does not allow comments.

This behaviour is in all the systems I have used recently: early and late
rexes, both freshly installed and upgraded, both in xterm and console. 

I suggest that bash should detect this option differently in
interactive and non-interactive shell, like mentioned in the
man-page.

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: