[Top][All Lists]

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

Tokenizer problem affecting argument history

From: ecki
Subject: Tokenizer problem affecting argument history
Date: Thu, 23 Feb 2017 11:58:57 +0100

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: x86_64-pc-linux-gnu-gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
-DHAVE_CONFIG_H   -I. -I./include -I. -I./include -I./lib  
-DSYS_BASHRC='/etc/bash/bashrc' -DSYS_BASH_LOGOUT='/etc/bash/bash_logout' 
-march=corei7 -O2 -pipe
uname output: Linux lokalhorst.net.tofex.de 4.4.0-gentoo-r1 #1 SMP Mon Jan 25 
18:18:38 CET 2016 x86_64 Intel(R) Core(TM) i7-3770S CPU @ 3.10GHz GenuineIntel 
Machine Type: x86_64-pc-linux-gnu

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

        When evaluating complex commands containing "$()" expressions, and later
        accessing arguments with !$, !* or !:<num>, results are not as expected,
        as the "$()" expression is broken into non-executable parts (see below).

        At least the manpage should clearly state such behaviour - I didn't find
        that within 10 minute search.

        $ mkdir -p /tmp/Step1
        $ ls /$(echo tmp)/Step1
        $ echo !:*
        echo /$ ( echo tmp ) /Step1
        bash: syntax error near unexpected token `('

        None so far.

reply via email to

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