The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
different shell csh bash ajp7701 Shell Programming and Scripting 1 04-18-2008 04:19 PM
Bash Scripts - File generating JayC89 Shell Programming and Scripting 1 10-04-2007 09:58 AM
Bash Shell BG_JrAdmin Linux 1 08-07-2006 01:56 PM
How to pass passwords to bash scripts? siegfried Shell Programming and Scripting 5 08-04-2006 05:59 PM
Difference between writing Unix Shell script and AIX Shell Scripts haroonec AIX 0 04-12-2006 02:27 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-26-2004
sonbag_pspl sonbag_pspl is offline
Registered User
  
 

Join Date: Jul 2004
Posts: 5
Bash Shell Scripts

Hi all,

plz can anybody tell me that if a script written for Bash shell also work for other shells and if yes , how ???


Thanks and Regards

SONAL
  #2 (permalink)  
Old 08-26-2004
norsk hedensk norsk hedensk is offline Forum Advisor  
Registered User
  
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
no, the syntax is different across different shell scripting languages.

sh scripts will work with bash however.
  #3 (permalink)  
Old 08-27-2004
rakeshawasthi rakeshawasthi is offline
Registered User
  
 

Join Date: Aug 2004
Location: India
Posts: 379
Other than just syntax differnce, bash shell also supports some added UNIX commands that are not part of sh shell. Using these commands may make your program useless on sh shell.

However, you can use common syntax and commands to make your program compatible for both the shells.
Closed Thread

Bookmarks

Tags
unix commands

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 12:58 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