Changeset 10d67d5


Ignore:
Timestamp:
Feb 20, 2009, 12:44:46 AM (12 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
21882032
Parents:
330c55a
git-author:
Nelson Elhage <nelhage@mit.edu> (02/13/09 00:02:03)
git-committer:
Nelson Elhage <nelhage@mit.edu> (02/20/09 00:44:46)
Message:
Expand ~ in the argument to :source
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r52a0f14 r10d67d5  
    32883288void owl_function_source(char *filename)
    32893289{
     3290  char *path;
    32903291  FILE *file;
    32913292  char buff[LINE];
     
    32943295  if (!filename) {
    32953296    fail_silent = 1;
    3296     filename=owl_global_get_startupfile(&g);
    3297   }
    3298   file=fopen(filename, "r");
     3297    path = owl_strdup(owl_global_get_startupfile(&g));
     3298  } else {
     3299    path = owl_util_makepath(filename);
     3300  }
     3301  file=fopen(path, "r");
     3302  owl_free(path);
    32993303  if (!file) {
    33003304    if (!fail_silent) {
Note: See TracChangeset for help on using the changeset viewer.