Please Help me “binary operator expected in cygwin”

I am trying to Run Shell script in Cygwin but I am getting Following error msgs: line 215: clear: command not found [: scripts/Test: binary operator expected. The folder scripts/Test ID Not found...

Can Any one suggest. What is the problem Do i need to re install Cygwin again.

Because Same Script Running fine in the Linux Envirnment.

Thanks in Advance.....


the script is probably using '#!/bin/sh' but expects the behaviour of /bin/bash. Try executing the script as: /bin/bash

debugging tools include executing the script with the -x option, i.e. bash -x The problem from the outset looks like an unset variable that is being checked using the unprotected form:

if [ $x = ]

the problem is that if $x is unset, then you end up with an empty token, which causes the script to fail.

for the explicit 'clear' command not found, the cygwin implementation of that is to call 'tput clear' if you replace the 'clear' call with 'tput clear' then it should work.

Need Your Help

Reorder function arguments in Lisp

input lisp arguments swap order

I'm interested in an operator, "swap-arg", that takes as input 1) a function f of n variables, and 2) index k, and then returns a the same function except with the first and kth input variables swa...

RabbitMQ High-speed Transient Messaging Performance

msmq rabbitmq tibco

The system we are building is receiving data through the external feed. Our job is to distribute this data to multiple services, run the calculations and forward the results elsewhere - typical

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.