Sponsored Content
Operating Systems AIX Why can't you use bash shell in aix? Post 302246671 by bakunin on Tuesday 14th of October 2008 05:32:29 AM
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")
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
SHCOMP(1)						       Korn shell utilities							 SHCOMP(1)

NAME
shcomp - compile a shell script SYNOPSIS
shcomp [ options ] [infile [outfile]] DESCRIPTION
Unless -D is specified, shcomp takes a shell script, infile, and creates a binary format file, outfile, that ksh can read and execute with the same effect as the original script. Since aliases are processed as the script is read, alias definitions whose value requires variable expansion will not work correctly. If -D is specified, all double quoted strings that are preceded by $ are output. These are the messages that need to be translated to locale specific versions for internationalization. If outfile is omitted, then the results will be written to standard output. If infile is also omitted, the shell script will be read from standard input. OPTIONS
[D dictionary] Generate a list of strings that need to be placed in a message catalog for internationalization. [n noexec] Displays warn- ing messages for obsolete or non-conforming constructs. [v verbose] Displays input from infile onto standard error as it reads it. EXIT STATUS
0 Successful completion. >0 An error occurred. SEE ALSO
ksh(1) IMPLEMENTATION
version shcomp (AT&T Research) 2003-03-02 author David Korn <dgk@research.att.com> copyright Copyright (c) 1982-2010 AT&T Intellectual Property license http://www.opensource.org/licenses/cpl1.0.txt 2003-03-02 SHCOMP(1)
All times are GMT -4. The time now is 09:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy