@INC equiv in .csh scripts ?

Discussion in 'Perl' started by thewhizkid, Jan 21, 2004.

  1. thewhizkid

    thewhizkid Guest

    Hi,

    Is there a built in variable in shell scripts which will
    print out the include search paths, similar to @INC in Perl ?

    Wil "echo $path" also print include paths ?

    THewHIZkID
    thewhizkid, Jan 21, 2004
    #1
    1. Advertising

  2. > Wil "echo $path" also print include paths ?

    Wrong NG - try comp.unix.misc or similar

    I never worked with csh, (I use sh / bash) but try :
    SOMEVAR=`set | grep PATH` # this will print the output of "set", filtered
    by lines containing "PATH", into $SOMEVAR

    HTH
    Michael
    Michael Korte, Jan 21, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nader Emami

    csh to Python

    Nader Emami, Jan 4, 2005, in forum: Python
    Replies:
    1
    Views:
    626
    Max M
    Jan 4, 2005
  2. David Hirschfield

    Parsing csh scripts with python

    David Hirschfield, Mar 28, 2006, in forum: Python
    Replies:
    2
    Views:
    327
    gene tani
    Mar 29, 2006
  3. Dan Bikle
    Replies:
    3
    Views:
    136
  4. Replies:
    3
    Views:
    1,622
  5. Ahmad
    Replies:
    1
    Views:
    181
    Henry Law
    Jan 27, 2008
Loading...

Share This Page