[Top][All Lists]

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

Re: extension of file-test primitives?

From: L A Walsh
Subject: Re: extension of file-test primitives?
Date: Mon, 21 Aug 2017 10:06:21 -0700
User-agent: Thunderbird

Peter & Kelly Passchier wrote:
Sorry, indeed I meant: [[ -fx $file ]]
All -ge -ne -eq etc. options are binary operators, while these new ones wpuld be unary, so I think the parsing would be unequivocal.
   Yeah, but as I said:

While "-ge $file" could probably be parsed reliably apart from
"$file2 -ge $file", they look similar to a human and might create
more confusion than help.

I _think_ people who are familiar w/brace expansion would
easily understand this new form and not confuse it with
existing features.

How many humans might waste time looking over a "-ge", and
either having an extra operand before, or not changing what they

Human time is far more costly than computer time, thus my
suggestion to make them hard to confuse and have them look
like an existing construct (brace expansion) being re-used
to shorten a sequence of file-ops.

reply via email to

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