[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: the "'" gets stuck into the date
From: |
Chris F.A. Johnson |
Subject: |
Re: the "'" gets stuck into the date |
Date: |
Wed, 18 Feb 2004 14:24:25 -0500 (EST) |
On Sat, 14 Feb 2004, Dan Jacobson wrote:
> Odd, the "'" gets stuck into the date. 2.05b.0(1)-release.
> $ cat q
> export LC_ALL=C
> set -x
> : $'\n\n'======$(date)==========
> $ sh q
> ++ date
> + : '
>
> ======Sat' Feb 14 12:28:09 GMT-8 2004==========
man bash:
QUOTING
.....
Words of the form $'string' are treated specially.....
.....
The expanded result is single-quoted, as if the dollar sign had
not been present.
--
Chris F.A. Johnson
=================================================================
cfaj@freeshell.org http://cfaj.freeshell.org