UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old October 30th, 2003, 11:31 AM
buddah buddah is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Location: Svizzera
Posts: 69 buddah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 15 m 20 sec
Reputation Power: 7
alias ksh --> bash

i set up this alias in ksh:
Quote:
TPAS01='. ${DBA_BASE}/bin/oralin.ksh TPAS01'

how to i convert this to bash-shell?
alias alias TPAS01='. ${DBA_BASE}/bin/oralin.ksh TPAS01' doesn't work.

thx a lot

Reply With Quote
  #2  
Old October 30th, 2003, 03:09 PM
druuna druuna is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 137 druuna User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 37 sec
Reputation Power: 0
Setting up an alias in ksh is the same as in bash:

alias TPAS01='. ${DBA_BASE}/bin/oralin.ksh TPAS01'

Should work in both cases.
I use both the bash and korn shell and in both shells I set up my aliasses the same way.

Reply With Quote
  #3  
Old October 30th, 2003, 04:53 PM
buddah buddah is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Location: Svizzera
Posts: 69 buddah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 15 m 20 sec
Reputation Power: 7
it doesnt work

im working with sun/solaris

i think the ksh and bash-shell have defined varibles in diferent files, but where are/is this file?

Reply With Quote
  #4  
Old October 30th, 2003, 05:16 PM
druuna druuna is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 137 druuna User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 37 sec
Reputation Power: 0
[QUOTE}i think the ksh and bash-shell have defined varibles in diferent files, but where are/is this file?[/QUOTE]

Once a alias has been created it becomes part of your (global)environment. To my knowledge it isn't put into a file.

Or do you want to know where they are defined in the first place? Like /etc/bash.bashrc, ~/.kshrc and so on?

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > alias ksh --> bash


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway