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
How do I get the same results in Perl as in csh bdsffl Shell Programming and Scripting 6 06-06-2007 11:55 PM
Different results from awk, sed, tr in different directories??? james_falco HP-UX 2 02-23-2007 02:02 AM
Strange ls results.. dbridle AIX 3 02-16-2006 06:12 AM
TOP Results AIX 5.3 mcastill66 AIX 1 09-26-2005 01:54 PM
C program with two results. Gandalfcgb High Level Programming 7 01-20-2002 01:25 PM

Closed Thread
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
  #1 (permalink)  
Old 04-08-2002
Ashishm Ashishm is offline
Registered User
  
 

Join Date: Feb 2002
Location: Mumbai (Bombay)
Posts: 7
set -A RESULTS

Hi,
Could you please tell me the meaning of the command

set -A RESULTS '---echo sybase command to execute a tored porcedure ----------' | isql


I just wants to know what does RESULTS contains after execution of command.

Thanks
Regards
Ashish Malviya
  #2 (permalink)  
Old 04-08-2002
PxT's Avatar
PxT PxT is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2000
Location: Sacramento, CA
Posts: 909
Re: set -A RESULTS

Quote:
Originally posted by Ashishm


I just wants to know what does RESULTS contains after execution of command.

"echo $RESULTS" will tell you that. See "man ksh" for details on what set -A does.
  #3 (permalink)  
Old 04-08-2002
Jimbo
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
Well, in this case, echo $RESULTS will be null. The leading dashes in the first array element is somehow causing this. If you push this to the second array element:

set -A RESULTS 'first slot' '---echo sybase command---'

then you can successfully do:

echo ${RESULTS[0]}
echo ${RESULTS[1]}
Closed Thread

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 06:48 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