1752778 Members
6437 Online
108789 Solutions
New Discussion юеВ

Re: Scripting problem

 
Henry Chua
Super Advisor

Scripting problem

hi guys are they equivalent?

#!/bin/ksh
alias START='trap 2; cmd1 path $planpath \!*; cmd2 \!* 0x103; trap exit 2; cmd3'

and

#!/bin/csh
alias START 'onintr -; cmd1 path $planpath \!*; cmd2 \!* 0x103; onintr exit; cmd3'

Somhow the ouput are different?

if I am wrong what is the ksh equivalent for the csh alias?

Best regards
Henry
2 REPLIES 2
Noel Miranda
Frequent Advisor

Re: Scripting problem

You dont put an = sign even in ksh for the alias cmd.
Rodney Hills
Honored Contributor

Re: Scripting problem

The !* syntax for getting the command line arguments is a "csh" construct. Not available under "ksh".

HTH

-- Rod Hills
There be dragons...