bug-bash
[Top][All Lists]
Advanced

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

Re: comments inside command subst are handled inconsistently


From: Denys Vlasenko
Subject: Re: comments inside command subst are handled inconsistently
Date: Mon, 31 Jul 2023 13:38:00 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0

On 7/28/23 19:51, Martin D Kealey wrote:
On the other hand, since everyone has now had 36+ years to update their scripts 
to get rid of backticks,

I don't know about others, but I missed the memo that `` is deprecated.

Please do not break compatibility.

The importance of compatibility is something people usually understand
after they get more experience being burned by failures to preserve it.

In the spirit of increased compatibility across Unix world, it'd be
quite useful if shells stop inventing incompatible "extensions".

The "function" keyword, for example. Why does it even exists?
It adds no functionality. When you use it, the only effect you get is
that now your script requires bash to work properly.

(searching the net... looks like it's historic, added for compatibility
with ksh).

Sorry for rambling.




reply via email to

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