bug-bash
[Top][All Lists]
Advanced

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

Command name dequote does not work


From: ingo . krabbe
Subject: Command name dequote does not work
Date: Tue, 15 Apr 2014 09:32:22 +0200 (CEST)

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../bash -I../bash/include -I../bash/lib  
-D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat 
-Werror=format-security -Wall
uname output: Linux k210app1 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1 x86_64 
GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 4.2
Patch Level: 37
Release Status: release

Description:
        I wrote a simple shell script using sed to convert \n into newlines and 
other \\(.) to \\\1 and called that script dequote.
When I'm trying to call it nothing happens, when I'm calling $HOME/bin/dequote 
it works. There's no alias called dequote, there's no other dequote in path.
When I rename the script and call it it just works as expected.

This looks like a secret command, that just echos its arguments, as calling 
"dequote xyz" echoes "xyz".

But having a secret alias or command is very evil. What's up here?


Repeat-By:
        see above

Fix:
        DonÃ't use secret commands. Any builtin has to be documented on the 
help page.




reply via email to

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