Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • I am not familiar with zsh but instead of export $FROM=/new/path, did you try it with just FROM=/new/path ? Commented Mar 30, 2016 at 18:18
  • @MelBurslan that was just a temporary typo (I actually corrected it 7 minutes before your comment (?)). I am using FROM=/new/path Commented Mar 30, 2016 at 18:19
  • What whence -f do_something outputs? Commented Mar 30, 2016 at 18:23
  • I did somethng similar in bash. My payload is just echo ${variable} instead of your rsync and it worked as expected for me. caching (for the lack of a better analogy) might be a zsh feature Commented Mar 30, 2016 at 18:24
  • Run set -x in zsh, set FROM and call do_something. Add the output to your answer Commented Mar 30, 2016 at 18:36