Need advice - Winbash or Cygwin?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Need advice - Winbash or Cygwin?
# 1  
Old 12-20-2016
Need advice - Winbash or Cygwin?

HI Folks -

With many clients (most) going to Linux environments, I'd like to begint o develop one set of portable scripts I can use across all clients. Therefore, for my clients still on Windows, I'll need to use a tool to be able to do this.

What would you recommend to run shell on Windows? I'm seeing a lot of chatter on Winbash or Cygwin. Do both some with all shell binaries?

Thanks!
# 2  
Old 12-20-2016
I use cygwin and find it quite a nice environment I find the Cygwin/X quite good in the windows environment.

As far as shell support goes it has:

bash, dash, fish, mksh, posh, tcsh, zsh

MirBSD Korn Shell is quite good for general ksh stuff, but it's missing a lot of the ksh93 features. In particular I miss Date Manipulation (eg printf "%T" now) and usually do ksh93 script testing/development on Linux.
# 3  
Old 12-21-2016
Winbash has "just bash", nothing else. If you can write all your scripts with bash features alone, this is fine, because you have a simple environment and don't have to care about installation and package dependencies.

As soon as you need some external tools, you need to install for instance the utilities found in GnuWin32 (GnuWin32). Of course in this case, you can equally well install Cygwin in the first place.

In the past, Cygwin had the disadvantage that you could not do a portable installation and you needed local admin rights to install it. Recently this imporved a lot, so this is not really an argument anymore.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

If statement advice

Hi all, Need some advice. I am attempting to write a if statment, to check a varaibale, but the output of the variable is empty (which is correct), but i am having issues write a if expression for this empty variable. Can you please advice. If statement - Output below if ]; ... (2 Replies)
Discussion started by: Junes
2 Replies

2. Shell Programming and Scripting

Looping advice

Hello guys i am generating files in while loop and i want add value in every file start from 10 to 55 and repeat that so the value never exceed 55 and always start from 10 can you advice how this can be done in while loop? (4 Replies)
Discussion started by: mogabr
4 Replies

3. Shell Programming and Scripting

opening new instance of cygwin from withing cygwin

I'm using cygwin on win7, What I would like to do is something like this: cygstart cygwin tail -f /foo/test.log | perl -pe 's/error/\e I know I can start a new instance using either of these: mintty -e ... cygstart tail ... But neither of those open in ANSI mode, so I can't do... (0 Replies)
Discussion started by: Validatorian
0 Replies

4. Shell Programming and Scripting

Need Advice

Guys, Can you tell me what value would additional knowledge of PERL and CGI scripting will add to my skill set of UNIX shell scripting and ORACLE PL/SQL? I understand that PERL is a good tool for text processing. (1 Reply)
Discussion started by: yabhi_22
1 Replies

5. What is on Your Mind?

career Advice

Hi all, I need a career Advice. About myself -- I have 2 years of work experience as a System Administrator (Linux and Solaris). I am Sun Certified System Administrator on Solaris 10.0 currently working in a MNC. As for career growth, I am doing 3 year MBA course from distance learning,... (4 Replies)
Discussion started by: vikas027
4 Replies

6. Red Hat

Any advice would help

Hi everyone. I must admit up front that I am not very strong when it comes to Linux. I am actually a Windows guy, but don't let that count against me. :) I work for a very small company so we do not have a Server/Linux Admin on staff. Most of our needs have been handled by our WebHost. We have... (2 Replies)
Discussion started by: liquidstyleb
2 Replies

7. UNIX for Dummies Questions & Answers

need advice

i am currently running windows vista home premium, i want to install unix because i just started a computer programing course, i am just wondering if i install unix will i still have vista?? how does it work? will i get a choice of which os to run on system startup?? (1 Reply)
Discussion started by: naner9
1 Replies

8. Shell Programming and Scripting

looking for advice...

Hi. First of all, Im an msoft guy, and when it comes to linux/unix, I'm retarded. Here is what I'm trying to do. I want to start I want to automatically connect to a remote server. Then I need it to login(https) -insert the licensce in the box(vi) -based on that licensce, the... (1 Reply)
Discussion started by: bravo24601
1 Replies

9. UNIX for Dummies Questions & Answers

Need advice: Awk vs something else?

I have a while read loop cycling through a fixed-length csv file and I'd like to use an if statement to check two fields in each line. I'm basically asking for your suggestions on the best and easiest way to check two fields in each line. I'm sure many of you may be thinking just use awk, but if... (1 Reply)
Discussion started by: yongho
1 Replies

10. UNIX Desktop Questions & Answers

Looking for some advice

I am looking for some advice on wether to use unix or red hat linux? I have played with most windows OS and Mac OS up to in and including OS X. any and all advice would be appreciated (4 Replies)
Discussion started by: justawind
4 Replies
Login or Register to Ask a Question