[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::digital_unix

Title:DIGITAL UNIX(FORMERLY KNOWN AS DEC OSF/1)
Notice:Welcome to the Digital UNIX Conference
Moderator:SMURF::DENHAM
Created:Thu Mar 16 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:10068
Total number of notes:35879

9473.0. "csh parameter passing" by MLNCSC::VOCI () Fri Apr 11 1997 07:22

    Hello,
    
    I have a problem with csh Digital Unix 4.0b.
    In the man pages the paramater -c has the following definition:
    
    -c Reads commands from the following single argument, which must be
       present. Any remaining arguments are placed in argv.
    
    I created the following script:
    
    #!/bin/csh
    echo " prova stampa parametri"
    echo $0
    echo $1
    echo $*
    
    I have different behaviour running this shell script:
    
    #/bin/csh -c ./param.csh parameter 
     prova stampa parametri
    ./param.csh
    
    ***** Note that the parameter is not passed to the shell
    
    #/bin/csh -c "./param.csh parameter"
     prova stampa parametri
    ./param.csh
    parameter
    parameter
    
    In this case everything works fine, the parameter is passed.
    
    Did I missunderstud what the man pages says, I expected the first
    command to work also.
    
    We are having discussions with a customer on this issue, he has lots
    for scripts that use the first sintax, and worked fine with OSF/1 1.3
    and 2.0 now on Digital Unix 4.0 this is no longer true. I don't have
    any machine with those old versions, so I can't verify the customer
    sentence.
    
    Thanks,
    Gea 
    
T.RTitleUserPersonal
Name
DateLines