This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fsplit problems


Tyson,

Cygwin does not emulate the Linux operating system at a binary executable level. It implements POSIX APIs in terms of Windows APIs. It has a great deal of FSF / GNU software, but that software is compiled specifically for Cygwin. There's no binary compatibility.

If the tool you want is not already available (it appears not to be a part of the Cygwin stock distribution), you can probably compile it under Cygwin. If the source has not been ported to Cygwin (in particular to accommodate the fact that Cygwin has a dual form of file access: text and binary modes), you probably want to use it only on binary mounted Cygwin file systems or with CYGWIN "binmode" set.

Your diagnostics come from a file being marked executable (in the file modes / chmod sense) but not being recognized as a valid binary for the system under which the exec(2) was attempted. The shell then tries to interpret the file as a script. Shell syntax errors ensue.

Randall Schulz


At 09:54 2003-03-20, Bourbina, Tyson Derrik (UMR-Student) wrote:
I was trying to use the same fsplit executable that I use under Redhat Linux, but with Cygwin, it gives this error:

./fsplit: 1: syntax error: "(" unexpected

after typing:

./fsplit

at the prompt (i.e. there was no "(" typed). It also gives the same error when I try using the fsplit executable to split a file. Your help would be appreciated.

Regards,
Tyson Bourbina


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]