bug-bash
[Top][All Lists]
Advanced

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

Re: multi-line like C-style comments ( /* code */ ) in bash


From: Dennis Williamson
Subject: Re: multi-line like C-style comments ( /* code */ ) in bash
Date: Sat, 7 Sep 2013 20:13:02 -0500

On Sat, Sep 7, 2013 at 12:05 PM, Edik Bondarenko
<address@hidden>wrote:

> I am added function `discard_multiline_comments` which disables code
> between /* and */ (C-style comments).
> The body of the function is located in the file y.tab.c : 5140 .
> Can this functionality be added in the next release ?
>

I didn't download your oversized tarball so I didn't read your code.
However, I feel safe in assuming that it doesn't properly handle a very
common character sequence in Bash scripts. Something along the lines of:

# simplified versions
dirname=${filename%/*}
basename=${filename##*/}

and others

I oppose this patch as well.



-- 
Visit serverfault.com to get your system administration questions answered.


reply via email to

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