Operating System - HP-UX
1828667 Members
1600 Online
109984 Solutions
New Discussion

problems with shell-scripts

 
SOLVED
Go to solution
Michael Koops_1
Advisor

problems with shell-scripts

hallo everbody,

i'm working with the keysh on a hpux-11.2-Itanium-2-box. executing the following script

#!/bin/sh
echo $*

gives "p_t=". executing the same script with command-line-paramters gives the same answer

any ideas?
3 REPLIES 3
Sanjay Kumar Suri
Honored Contributor

Re: problems with shell-scripts

$*: contains all of the positional parameters separated by blanks.

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Dietmar Konermann
Honored Contributor
Solution

Re: problems with shell-scripts

Hmm, maybe your ENV variable is set to some weird script? Just a guess, but pls try the your script with the -p option added to sh:

#!/bin/sh -p
echo $*

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Michael Koops_1
Advisor

Re: problems with shell-scripts

thanks a lot,

-p works fine

regards
Michael