@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. Advertisements

  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. Advertisements

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:
    742
    Max M
    Jan 4, 2005
  2. Jan Danielsson
    Replies:
    8
    Views:
    921
    Mike Meyer
    Jul 22, 2005
  3. David Hirschfield

    Parsing csh scripts with python

    David Hirschfield, Mar 28, 2006, in forum: Python
    Replies:
    2
    Views:
    503
    gene tani
    Mar 29, 2006
  4. davidj411
    Replies:
    0
    Views:
    804
    davidj411
    Jun 27, 2008
  5. Dan Bikle
    Replies:
    3
    Views:
    243
  6. Replies:
    3
    Views:
    2,474
  7. Ahmad
    Replies:
    1
    Views:
    319
    Henry Law
    Jan 27, 2008
  8. Ilya Zakharevich

    Detecting Bourne (or csh) shell from Perl

    Ilya Zakharevich, Mar 3, 2010, in forum: Perl Misc
    Replies:
    8
    Views:
    395
    Ilya Zakharevich
    Mar 10, 2010
Loading...