Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!rpi!tale From: tale@pawl.rpi.edu (David C Lawrence) Newsgroups: comp.unix.questions Subject: Re: Unknown alias in ksh script problem. Message-ID: <1989Oct26.200808.16725@rpi.edu> Date: 26 Oct 89 20:08:08 GMT References: <7010003@hpfcso.HP.COM> Organization: Rensselaer Polytechnic Institute, Troy NY Lines: 20 In <7010003@hpfcso.HP.COM> pld@hpfcso.HP.COM (Paul Dineen) writes: Paul> When I pipe to an alias in a ksh script, the alias definition Paul> is always unknown. For example: [...deleted...] Paul> When the line "ll | bigfiles" is executed from the keyboard, Paul> there is no problem. In <1487@crdos1.crd.ge.COM> davidsen@crdos1.crd.ge.COM (Wm E Davidsen Jr): Bill> Did you forget to export PATH? That would leave the script Bill> using the default. The problem is not at all related to PATH. As with any shell that allows aliasing and/or function definition, the aliases and functions are not passed to children. Only variables exported to the environment are directly availble. If he wants the bigfiles alias, he will have to define it in the script, or source the script rather than execute it. Dave -- (setq mail '("tale@pawl.rpi.edu" "tale@itsgw.rpi.edu" "tale@rpitsmts.bitnet"))