Why can't you use bash shell in aix?


 
Thread Tools Search this Thread
Operating Systems AIX Why can't you use bash shell in aix?
# 1  
Old 10-13-2008
Why can't you use bash shell in aix?

Hey'all... I'm so use to using bash in unix, that aix is driving me batty on the command line using arrow keys and so forth. Even cuts and pastes are creating a problem using the esc k and set -o vi. Is there anything else that is abit safer or better...like bash?
Smilie
# 2  
Old 10-14-2008
Well, IBM has bash for AIX according to this page: IBM AIX Toolbox Download Page - Alphabetical Listing
# 3  
Old 10-14-2008
Bug Awesome!!

Thanks for the response. I will see if I can get the SA's to load.
Does it really work like unix bash?Smilie
# 4  
Old 10-14-2008
Quote:
Originally Posted by gzs553
Thanks for the response. I will see if I can get the SA's to load.
Does it really work like unix bash?Smilie
AIX default shell is the Korn shell. There are quite some other shells one can use with AIX. However IMHO anything but ksh or ksh93 in AIX is about 99.xx% compatible only. The missing .xx% can cause you quite some headaches when you rather would concentrate on some other os related problem. Therefore, as an AIX administrator I'd always recommend to stick to ksh Smilie
If your problem was just which editor to use (vi, emacs...) and using its corresponding keys to move through the command history, cut and paste and so on - this was just a matter of configuring it in the user profile. This should work the same way in any shell. I.e. if you do not define your keys for your environment bash might not behave differently to ksh.
# 5  
Old 10-14-2008
Quote:
Originally Posted by shockneck
AIX default shell is the Korn shell.
Amen to that! ;-))

Seriously, as shockneck already said using some non-standard shell (or non-standard tool in general) is always asking for trouble. Most of the times this asking goes unanswered but in the least convenient moment you will have to deal with some subtle intricacy on top of your already pending deadline.

I would rather learn an additional tool instead of taking that chance.

As a systems administrator i have seem many software developers using bash instead of ksh, nawk/gawk/whatever instead of awk, etc., etc.. Many times this ended at my desk asking questions like "why doesn't this script run correctly in my environment" or "why does this not work at the customers site, it is working for me".

This does not mean that these tools are bad at all. They are just a glimpse of a hint different in some way from their standard counterparts - maybe even better, but different. Chances are these differences will have an adverse effect once when you least expect it.

I hope this helps.

bakunin
(first statement in my .kshrc is indispensably "set -o vi")
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Customizing bash on AIX

AIX is really different from most distros I am used to. I am trying to set up my .bashrc so I did this in the file. I noticed when I ssh into the server or use the bash command for a new shell it was being ignored. #------------------------------------------------------------- # Source global... (2 Replies)
Discussion started by: cokedude
2 Replies

2. UNIX for Beginners Questions & Answers

In Bash shell - the ps -ef shows only the /bin/bash but the script name is not displayed

In Bash shell - the ps -ef shows only the /bin/bash but the script name is not displayed ? Is there any way to get the script names for the process command ? --- Post updated at 08:39 AM --- in KSH (Korn Shell), my command output shows the script names but when run in the Bash Shell... (3 Replies)
Discussion started by: i4ismail
3 Replies

3. Shell Programming and Scripting

Different behavior between bash shell and bash script for cmd

So I'm trying to pass certain json elements as env vars and use them later on in a script. Sample json: JSON='{ "Element1": "file-123456", "Element2": "Name, of, company written in, a very weird way", "Element3": "path/to/some/file.txt", }' (part of the) script: for s... (5 Replies)
Discussion started by: da1
5 Replies

4. Shell Programming and Scripting

Parallel processing in AIX (bash shell scripting)

Hi all, I am struggling to build a utility which can do the parallel processing. I achieved same in Linux using xargs -P but same is not working on AIX. I am building file copy utility where I will have all required info in a file (like souce file info and target location details), now i need... (2 Replies)
Discussion started by: ankur singh
2 Replies

5. AIX

Bash does not work on AIX 7.2

We have a new LPAR with AIX 7.2. We want to work with bash, so installed bash from Perzl (bash_64-4.4.5.aix5.1.ppc.rpm). But after install bash does not work. If I call "bash", nothing happens. The xterm, where I started bash, is totally dead. I tried the bash from aixtools.net, too. Same... (4 Replies)
Discussion started by: BuSchu
4 Replies

6. AIX

Installing bash on AIX 6.1

Hi, I am trying to install " bash 4.1 " on AIX 6.1 OS and with this gcc compiler file " gcc-4.2.0-3.aix5.3.ppc.rpm ". could help someone with below links if needed for future use..just in case Downloaded -----bash-4.1.tar.gz -------- file from below link ... (2 Replies)
Discussion started by: Rookie_newbie
2 Replies

7. AIX

Install bash on AIX

Hi, Im trying to install bash on AIX, I have rpm installed but get: rpm --install bash-3.0-19.3.ppc.rpm error: failed dependencies: libc.so.6 is needed by bash-3.0-19.3 libc.so.6(GLIBC_2.0) is needed by bash-3.0-19.3 libc.so.6(GLIBC_2.1) is needed by... (0 Replies)
Discussion started by: chris5126
0 Replies

8. AIX

Bash under AIX 5.3

Hi, I am newer in the AiX 5.3 world.I have experience in the linux OS.I want to use bash interpreter under AIX?Is it possible?If yes, How? For Information, I want to use history command under AIX,etc, things doesn't exit under AIX. Many Thanks in advance. (4 Replies)
Discussion started by: taupin
4 Replies

9. AIX

Difference between writing Unix Shell script and AIX Shell Scripts

Hi, Please give me the detailed Differences between writing Unix Shell script and AIX Shell Scripts. Thanks in advance..... (0 Replies)
Discussion started by: haroonec
0 Replies

10. AIX

BASH on AIX

Hi everyone, Currenntly I am using Korn Shell on an AIX server. I want to migrate to BASH shell. How do I go about it? And what are the impediments to getting bash on the server? Your comments will be deeply appreciated. Thanks (3 Replies)
Discussion started by: Eddie_The_Head
3 Replies
Login or Register to Ask a Question