Re: bash und echo
On Sat, Jan 18, 2003 at 11:27:26PM +0100, clemens kurtenbach wrote:
> Hi,
>
> >----snip-----
> >erno@flinker:~$ echo -e \101
> >101
> >----snip-----
> >
> >Lt. man bash hätte ich als output "A" erwartet.
> >Was interpretiere ich falsch?
A non-quoted backslash (\) is the escape character. It preserves the lit
eral value of the next character that follows, with the exception of <new
line>. If a \<newline> pair appears, and the backslash is not itself
quoted, the \<newline> is treated as a line continuation (that is, it is
removed from the input stream and effectively ignored).
> [ck@nexus:ck] echo -e '\101'
> A
Christian
--
Christian Knoke * * * http://www.enter.de/~c.knoke/
* * * * * * * * * Ceterum censeo Microsoft esse dividendum.
Reply to: