Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!hplabs!hpda!hpcuhc!hpsemc!gph From: gph@hpsemc.HP.COM (Paul Houtz) Newsgroups: comp.unix.wizards Subject: Positional Parameter Settin in function Message-ID: <570024@hpsemc.HP.COM> Date: 5 Jun 89 23:33:11 GMT Organization: HP Technology Access Center, Cupertino, CA Lines: 36 In my ksh, the "set" command doesn't seem to work within a function: As a shell command I do the following: $ set `date` $ echo $4 16:31:00 Now if I declare a function: $ foo () { / set `date` / } $ foo $ echo $4 16:31:00 As you can see, the old `date` is still in the positional parameters, otherwise the seconds part of the date should have changed by now. Is this a bug in ksh? Is it a feature? Is there some explanation of this feature? Thanks for any help you can give. Paul Houtz HP Technology Access Center 10670 N. Tantau Avenue Cupertino, Ca 95014 (408) 725-3864 hplabs!hpda!hpsemc!gph gph%hpsemc@hplabs.HP.COM