Note that there are some explanatory texts on larger screens.

plurals
  1. USjmetz
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. CO@yoda - Ok I see your point. However, as you mention, you will never use `run` yourself, and therefore while technically your answer can be used, I still don't think it's a good one wrt coding practices, and would still advocate the modification of the path variable _a la_ `addpath`. Thank you for clarifying your reasoning though. I do agree with you that in it's current form, it's not clear whether the OP is a duplicate of `addpath`-type questions, though I suspect that it may be.
      singulars
    2. CO@yoda: Actually as you mention in your post, `run` is a convenience function. If you check out the source code, it is pretty much just what the OP does manually, in function form! I.e. it extracts the directory from the input, cd's to it, calls the function, and returns to the original directory. Therefore, is is not going to be the same as calling the code from the current directory, which the OP asks for (for example they may have other functions in the current directory which they also need...).
      singulars
    3. CO@yoda: Ok so it will work for the special case of zero-input functions. I don't think that constitutes a useful answer though, and the more general approach would be to add the path. I'm not sure why you interpreted the question as specifying that the path should not be modified (re. your reply to @gnovice comment)
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload