Bash differences on unix's

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Bash differences on unix's
# 1  
Old 02-02-2008
Bash differences on unix's

I am using bash on two different unix versions and for some reason the commands operate slightly differently. For example, 'ls * -la' gives me an error on one unix system, but works fine on a different system. The versions of unix are actually OS x and linux, and both systems are running GNU bash 3.2.

Since I am switching between different systems often, the different command line syntax is really annoying. Does anyone know if the differences are because of a compile option or is there a config file somewhere that results in the different behavior?

I have tried compiling bash from source with what I think is the same conditions on both systems, but I can't resolve the differences

# 2  
Old 02-02-2008
What are the differences you are experiencing? Telling us would help. Also why are you entering "ls * -la" instead of the more common "ls -al *"
# 3  
Old 02-02-2008
maybe you can define some alias-es for your commands.... and in that way hou will have the same command names on both systems...
# 4  
Old 02-02-2008

I suppose I could set up a series of aliases for the differences between the bashes. But I would like to know why the same source code compiles differently on different system without going through the code itself. I can't seem to find any explanation anywhere online to explain what I am seeing, and there is nothing in the configure docs on it.

But this is not a major problem for me, it is just that I got used to the way bash works under Linux, hence I often use syntax like 'ls * -la' rather than the more standard 'ls -l *'. And I seem to be looking up man pages quite a lot these days to find out what the syntax is for common commands.

# 5  
Old 02-02-2008

regarding to the `why the same source code compiles differently on different system`
I think the main cause is the architectural differences between the systems. Integrating a gnu utility into a new operating system, may be difficult, and sometimes you should limit the utility capabilities in order to integrate into your os....

In the past I also faced your problem, an I also wondered why the basic command syntaxes are so different... My final conclusion is that every OS is a different OS, even that they are kindred... Different OS, different commands...

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

UNIX vs windows, differences

Hello! Please, I am sorry, I am the absolute beginner, If I have unix as os instead of lets say windows, then can I go to INTERNET and how? Are there some other BIG differences? Many thanks!!! (1 Reply)
Discussion started by: pinklemon
1 Replies

2. UNIX for Dummies Questions & Answers

Red Hat 7.3 and UNIX similarities and differences::

I recently started an introductory course in UNIX / Linux Red Hat 7.3. The textbook came with the Red Hat 7.3 OS included but no UNIX. Are the commands and syntax so closely related that if I learn one I automatically know how to use the other. What are the similarities and differences. When... (2 Replies)
Discussion started by: barbedwire615
2 Replies

3. Shell Programming and Scripting

differences in linux and unix shell

hi all, can any one plz tell me that what is the difference between linux shell scripting and unix shell scripting. is there any difference at all?? if yes that what are the differences and how could it be combatted thanks in advance (1 Reply)
Discussion started by: nasir_khan
1 Replies

4. UNIX for Dummies Questions & Answers

Differences in BASH and ASH shells regarding if command?

Guys I now have a script that's working in a BASH environment, however one line doesn't appear to be working on an embedded device that has a busybox therefore ASH shell. I've googled but there's very little I can find regarding the ASH shell. In BASH the following line works... if ] ;... (6 Replies)
Discussion started by: Bashingaway
6 Replies

5. Shell Programming and Scripting

Differences between 2 Flat Files and process the differences

Hi Hope you are having a great weeknd !! I had a question and need your expertise for this : I have 2 files File1 & File2(of same structure) which I need to compare on some columns. I need to find the values which are there in File2 but not in File 1 and put the Differences in another file... (5 Replies)
Discussion started by: newbie_8398
5 Replies

6. UNIX for Dummies Questions & Answers

Differences between different versions of Unix

I sent a private message to one of the administrators/moderators, but I thought I'd ask here publicly after some thought. I'm getting into Unix on my Mac (BSD). I was just wondering what the differences are between versions of Unix -- I want to learn more about it, but would it be better to... (1 Reply)
Discussion started by: Straitsfan
1 Replies

7. Shell Programming and Scripting

Differences in awk between UNIX flavours

Hi, I've been charged with the task of finding out whether the scripts which we use on our current DYNIX (Sequent) UNIX box will continue to run happily on our soon-to-be-installed Sun Solaris box. I'm fairly certain that they'll be OK, but I've heard mutterings about awk running differently... (2 Replies)
Discussion started by: pbritta
2 Replies

8. UNIX for Dummies Questions & Answers

Solaris Unix vs HP Unix, Could someone point out the major differences.

Solaris Unix vs HP Unix, Could someone point out the major differences. I have been performing Support to Solaris Unix for about 6 years, now I am interviewing for a HP Unix position. Could someone point out the major differences? Should it be an easy transition? Thanks (1 Reply)
Discussion started by: Hack
1 Replies

9. UNIX for Dummies Questions & Answers

Unix and Solaris differences

hi guys, I am the newest dumbest person who has no clue of unix and solaris. Could someone help me by telling me what the difference is? thanks... me (4 Replies)
Discussion started by: theboxer01
4 Replies
Login or Register to Ask a Question