Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#69 expectk doesn't source .expect.rc

closed-out-of-date
nobody
None
5
2010-08-28
2009-11-11
Sergei Golovan
No

Looks like expectk doesn't source local and global rc files. It happens both for CVS (with patch from 2585764, otherwise it doesn't start at all) and for older releases (e.g. 5.43.0). expectk -help returns the following among other info:
-norc: Don't read ~/.expect.rc
-NORC: Don't read system-wide expect.rc
so, rc files should be sources.

The attached patch moves my_rc and sys_rc definitions up and adds call to exp_interpret_rcfiles(interp,my_rc,sys_rc) which seems to fix the bug. The variables are modified in Tk_Init2() during command line parsing. Note that the patch from 2585764 is still necessary for expectk to run.

Discussion

  • Sergei Golovan
    Sergei Golovan
    2009-11-11

     
    Attachments
  • Jeffrey Hobbs
    Jeffrey Hobbs
    2010-08-28

    expectk has been removed in 5.45. Use package require Expect in wish instead.

     
  • Jeffrey Hobbs
    Jeffrey Hobbs
    2010-08-28

    • status: open --> closed-out-of-date