![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| Problem with function script. | gzs553 | Shell Programming and Scripting | 3 | 04-21-2008 03:15 PM |
| Problem with Recursive function | malle | Shell Programming and Scripting | 4 | 02-03-2007 10:40 AM |
| PERL function problem | avadhani | Shell Programming and Scripting | 2 | 06-15-2005 04:18 AM |
| Problem with aio_write() function | hmurali | High Level Programming | 0 | 06-04-2002 12:43 AM |
| rexec() function problem | lcmoreno | High Level Programming | 7 | 01-08-2002 10:19 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Function Problem and CoreDump
Hi, i have a question:
i build this function: function WriteLog { .... ... print $* print $* >> FileLog .... .... } the function are called with this sintax: ..... ..... WriteLog "XXXXXXXX" ...... this operation work correctly. but when call the function with this sintax: WriteLog $A$B or WriteLog "\tXXXXXX \tXXXXXX \c" or WriteLog $A${B[XX]} or WriteLog "XXXXXX"" ""BBBBBBB" I have error "COREDUMP" but if assign a variable the string : for ex StringaExe="X\tBBBBBB\t\tCCCC" and call WriteLog $StringExe I have not problem !!!! I Things $* it's correctly assign when call the function ???? |
|
||||
|
Got it - ksh93 is an "add-on" not part of the HPUX standard distribution, AFAIK. For our HPUX boxes we get support only on sh and ksh. YMMV.
I believe you have a shell problem. The examples I gave you and the examples you gave me that failed are POSIX compliant and should work in a POSIX shell. I don't know how you'd get support from HP -- which is where I would start in another circumstance. If you cannot get support, try /usr/bin/ksh Your examples should never coredump. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|