Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14979 > unrolled thread

Re: Should [[ -v 1 ]] be supported?

Started byPeng Yu <pengyu.ut@gmail.com>
First post2018-12-27 19:24 -0600
Last post2018-12-27 19:24 -0600
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Should [[ -v 1 ]] be supported? Peng Yu <pengyu.ut@gmail.com> - 2018-12-27 19:24 -0600

#14979 — Re: Should [[ -v 1 ]] be supported?

FromPeng Yu <pengyu.ut@gmail.com>
Date2018-12-27 19:24 -0600
SubjectRe: Should [[ -v 1 ]] be supported?
Message-ID<mailman.6430.1545961123.1284.bug-bash@gnu.org>
> I don't believe that at all. The number of positional parameters is kept
> anyway. It's not recalculated when you compare it to another number, so
> it's just as fast as a simple comparison of two integers.

Getting the number $# is slow.

> And even if it weren't -- if performance is *that* important to you,
> you're using the wrong language altogether.

There is no reason why bash has to be slow. Javascript was slow. But
it has been optimized to be much faster than it was before.

What I see bash is that it is syntax is much better than other
languages in terms of interactive use and not use () for arguments? It
could be made faster and with some additional features, it could be
used for other more serious applications rather than just a glue of
other tools.

-- 
Regards,
Peng

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web