bug-bash
[Top][All Lists]
Advanced

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

Verbose error output in interactive mode


From: John Passaro
Subject: Verbose error output in interactive mode
Date: Fri, 5 Aug 2016 11:16:05 -0400

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: darwin15.0.0
Compiler: clang
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='darwin15.0.0' -DCONF_MACHTYPE='x86_64-apple-darwin15.0.0' -DCONF_VENDOR='apple' -DLOCALEDIR='/usr/local/Cellar/bash/4.3.42/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -DMACOSX   -I.  -I. -I./include -I./lib -I./lib/intl -I/private/tmp/bash20150913-75517-1rfmxak/bash-4.3/lib/intl  -DSSH_SOURCE_BASHRC
uname output: Darwin john-zeconomy.local 15.6.0 Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64
Machine Type: x86_64-apple-darwin15.0.0

Bash Version: 4.3
Patch Level: 42
Release Status: release

Description:
In an interactive session, when attempting file completion via <Tab>
when a certain type of ill-formed command substitution is present, bash
gives verbose error output relating to "unexpected end of file".

Naturally you can work around this by never making this mistake when
using command substitution, but it seems to me bash can probably guard
for this and avoid disruptive error messages.

Repeat-By:
In an interactive session, type the following:

$ echo "$(echo " ~/
(Note the missing close-parenthesis.)
With the cursor at the end of this line (i.e. after the "/",), enter a
tab.
Bash should prompt with a listing of the given directory. Instead, the
following is shown:
$ echo "$(echo " ~/-bash: command substitution: line 87: unexpected EOF while looking for matching `"'
-bash: command substitution: line 88: syntax error: unexpected end of file
-bash: command substitution: line 87: unexpected EOF while looking for matching `"'
-bash: command substitution: line 88: syntax error: unexpected end of file
-bash: command substitution: line 87: unexpected EOF while looking for matching `"'
-bash: command substitution: line 88: syntax error: unexpected end of file
-bash: command substitution: line 87: unexpected EOF while looking for matching `"'
-bash: command substitution: line 88: syntax error: unexpected end of file
-bash: command substitution: line 87: unexpected EOF while looking for matching `"'
-bash: command substitution: line 88: syntax error: unexpected end of file

I apologize that I'm unable to offer a solution.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]