[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: $\n doesn't get expanded between double-quotes ['PureMessage.Watchdo
From: |
Chet Ramey |
Subject: |
Re: $\n doesn't get expanded between double-quotes ['PureMessage.Watchdog': checked] |
Date: |
Fri, 03 Jul 2009 13:01:21 -0400 |
User-agent: |
Thunderbird 2.0.0.22 (Macintosh/20090605) |
fsc-log-rjn@richardneill.org wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: i486
> OS: linux-gnu
> Compiler: gcc
> Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486'
> -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-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 -g -O2
> -Wall
> uname output: Linux fsc-log 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17
> 01:57:59 UTC 2009 i686 GNU/Linux
> Machine Type: i486-pc-linux-gnu
>
> Bash Version: 3.2
> Patch Level: 48
> Release Status: release
>
> Description:
> Bash allows escape characters to be embedded by using the $'\n'
> syntax. However, unlike all other $variables,
> this doesn't work with embedded newlines. I think it should.
$'...' and $"..." are not variable expansions. They are special cases of
single- and double-quoting, respectively.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/