On 4/15/14, 3:32 AM, [email protected] wrote:
> 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.
Please. Run `type dequote' and see what it displays.
You have access to the source code, you know; you could have checked
whether or not there is a `secret command' named `dequote'.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/