Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14150

BASH_ALIASES assignment allow special characters

Path csiph.com!goblin3!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Mike Jonkmans <bashbug@jonkmans.nl>
Newsgroups gnu.bash.bug
Subject BASH_ALIASES assignment allow special characters
Date Sun, 27 May 2018 10:20:57 +0200 (CEST)
Lines 23
Approved bug-bash@gnu.org
Message-ID <mailman.545.1527409287.1292.bug-bash@gnu.org> (permalink)
NNTP-Posting-Host lists.gnu.org
X-Trace usenet.stanford.edu 1527409288 18438 208.118.235.17 (27 May 2018 08:21:28 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash@gnu.org,bash@packages.debian.org
Envelope-to bug-bash@gnu.org
X-SourceIP 62.163.69.112
X-Ziggo-spambar /
X-Ziggo-spamscore 0.0
X-Ziggo-spamreport CMAE Analysis: v=2.3 cv=KIt08mNo c=1 sm=1 tr=0 a=ONQKbMlQgRqYTzjcV855Rg==:17 a=VUJBJC2UJ8kA:10 a=MII0wzbjDjfxB9IiYTEA:9 none
X-Ziggo-Spam-Status No
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy]
X-Received-From 212.54.34.164
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.21
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash/>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:14150

Show key headers only | View raw


Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: 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../. -I.././include -I.././lib  -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/bash-vEMnMR/bash-4.4.18=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wno-parentheses -Wno-format-security
uname output: Linux sint 4.15.0-22-generic #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 4.4
Patch Level: 19
Release Status: release

Description:
	The special array BASH_ALIAS allows assignment/creation of aliases with
	special characters in it.
	Though these characters would error when used in an alias statement.

Repeat-By:
	BASH_ALIASES+=(['/x']=echo)
	/x echo
	! alias /x=echo
	## bash: alias: `/x': invalid alias name

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

BASH_ALIASES assignment allow special characters Mike Jonkmans <bashbug@jonkmans.nl> - 2018-05-27 10:20 +0200

csiph-web