The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
shell differences? hi2_t UNIX for Dummies Questions & Answers 2 09-09-2009 11:42 AM
bash shell: 'exec', 'eval', 'source' - looking for help to understand alex_5161 Shell Programming and Scripting 3 07-24-2008 01:42 PM
C shell & Bourne Shell jsm66 Shell Programming and Scripting 3 02-12-2007 03:19 AM
bourne shell or korn shell? XZOR UNIX for Dummies Questions & Answers 2 10-06-2006 03:34 AM
Bourne-again shell mrsamer UNIX for Dummies Questions & Answers 3 09-30-2006 03:42 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #8 (permalink)  
Old 4 Weeks Ago
pludi's Avatar
pludi pludi is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2008
Location: .at
Posts: 1,972
vim is an acronym for vi improved. Works just like ye olde vi, just has some perks added (such as multiple undo and command recall).

As for your problem with the shell script, I can't quite make out the difference between bash and "a real/true" shell (what's the difference for you anyways? A certain version?). On Linux, using bash and AT&T Korn Shell (test.sh was created on Windows XP using Notepad):
Code:
> cat test.sh
touch Apple
echo me thinks bash is not so good
> /bin/bash test.sh
touch: cannot touch `Apple\r': No such file or directory
me thinks bash is not so good
> /usr/bin/ksh test.sh
touch: cannot touch `Apple\r': No such file or directory
me thinks bash is not so good

On HP-UX, again using the same shells:
Code:
$ /usr/local/bin/bash test.sh
me thinks bash is not so good
$ ls -b Apple*
Apple\015
$ rm Apple*
$ /usr/bin/ksh test.sh
me thinks bash is not so good
$ ls -b Apple*
Apple\015

Both AT&Ts Korn Shell and bash are fully (to my knowledge) POSIX compatible shells, based on the original Korn shell. The original Bourne Shell isn't POSIX compatible, neither is the C Shell (and it's successors).

As for bash being a free shell: it's not the only one. AT&Ts Korn Shell has public available source code since 2000, and most Linux distributions have since added it to their repositories (including Cygwin). And then there's ash, dash, zsh, ...
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:42 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0