bug-bash
[Top][All Lists]
Advanced

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

Re: Syntax for tab character


From: Bill Gradwohl
Subject: Re: Syntax for tab character
Date: Fri, 24 Apr 2009 15:16:38 -0600

On Fri, 2009-04-24 at 13:50 -0400, Greg Wooledge wrote:
> parameter=${paramter//[ $'\t']/}

I experimented a bit. See the attachment.


The first 3 dumpit outputs are expected. The next 2 are not. The last 2
show what I would have expected from the previous 2.

The $' inside the [] is being used up but not in any way I expected.
Clearly, $'\t' is not representing a tab character, nor is it just using
the $ as a character in its own right. What is it doing?

-- 
Bill Gradwohl

Attachment: xxx
Description: application/shellscript

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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