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


Groups > gnu.bash.bug > #14150 > unrolled thread

BASH_ALIASES assignment allow special characters

Started byMike Jonkmans <bashbug@jonkmans.nl>
First post2018-05-27 10:20 +0200
Last post2018-05-27 10:20 +0200
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug


Contents

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

#14150 — BASH_ALIASES assignment allow special characters

FromMike Jonkmans <bashbug@jonkmans.nl>
Date2018-05-27 10:20 +0200
SubjectBASH_ALIASES assignment allow special characters
Message-ID<mailman.545.1527409287.1292.bug-bash@gnu.org>
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

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web