{"action":"created","issue":{"url":"https://api.github.com/repos/fisherman/fisherman/issues/79","repository_url":"https://api.github.com/repos/fisherman/fisherman","labels_url":"https://api.github.com/repos/fisherman/fisherman/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/fisherman/fisherman/issues/79/comments","events_url":"https://api.github.com/repos/fisherman/fisherman/issues/79/events","html_url":"https://github.com/fisherman/fisherman/issues/79","id":131980231,"number":79,"title":"use fully qualified paths of `cp`, `mv`, etc. or `command` before invoking them","user":{"login":"jab","id":64992,"avatar_url":"https://avatars.githubusercontent.com/u/64992?v=3","gravatar_id":"","url":"https://api.github.com/users/jab","html_url":"https://github.com/jab","followers_url":"https://api.github.com/users/jab/followers","following_url":"https://api.github.com/users/jab/following{/other_user}","gists_url":"https://api.github.com/users/jab/gists{/gist_id}","starred_url":"https://api.github.com/users/jab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jab/subscriptions","organizations_url":"https://api.github.com/users/jab/orgs","repos_url":"https://api.github.com/users/jab/repos","events_url":"https://api.github.com/users/jab/events{/privacy}","received_events_url":"https://api.github.com/users/jab/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fisherman/fisherman/labels/CRITICAL","name":"CRITICAL","color":"fb6420"},{"url":"https://api.github.com/repos/fisherman/fisherman/labels/ENHANCEMENT","name":"ENHANCEMENT","color":"00DEFF"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/fisherman/fisherman/milestones/7","html_url":"https://github.com/fisherman/fisherman/milestones/0.7.0","labels_url":"https://api.github.com/repos/fisherman/fisherman/milestones/7/labels","id":1561363,"number":7,"title":"0.7.0","description":"","creator":{"login":"bucaran","id":8317250,"avatar_url":"https://avatars.githubusercontent.com/u/8317250?v=3","gravatar_id":"","url":"https://api.github.com/users/bucaran","html_url":"https://github.com/bucaran","followers_url":"https://api.github.com/users/bucaran/followers","following_url":"https://api.github.com/users/bucaran/following{/other_user}","gists_url":"https://api.github.com/users/bucaran/gists{/gist_id}","starred_url":"https://api.github.com/users/bucaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bucaran/subscriptions","organizations_url":"https://api.github.com/users/bucaran/orgs","repos_url":"https://api.github.com/users/bucaran/repos","events_url":"https://api.github.com/users/bucaran/events{/privacy}","received_events_url":"https://api.github.com/users/bucaran/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":0,"state":"open","created_at":"2016-02-03T15:54:43Z","updated_at":"2016-02-07T16:26:47Z","due_on":"2016-02-12T15:00:00Z","closed_at":null},"comments":9,"created_at":"2016-02-07T16:04:02Z","updated_at":"2016-02-07T17:20:39Z","closed_at":null,"body":"I have common commands like `cp`, `mv`, etc. aliased to `cp -i`, `mv -i`, etc.\r\n\r\nWhen I use fisherman, I see `overwrite /Users/jab/.config/fisherman/fishfile? (y/n [n]) not overwritten`.\r\n\r\nI assume this is caused by fisherman referring to a command like cp as just `cp`, rather than as `/bin/cp` or `command cp`. This can cause problems if the user has the command aliased to pass other arguments (such as interactive mode, as above), since fisherman is assuming `cp` is the same thing as `/bin/cp`, it isn't. If so, any interest in fixing this? I think well-behaved shell scripts are supposed to use fully-qualified paths or use `command` to avoid this problem."},"comment":{"url":"https://api.github.com/repos/fisherman/fisherman/issues/comments/181054886","html_url":"https://github.com/fisherman/fisherman/issues/79#issuecomment-181054886","issue_url":"https://api.github.com/repos/fisherman/fisherman/issues/79","id":181054886,"user":{"login":"bucaran","id":8317250,"avatar_url":"https://avatars.githubusercontent.com/u/8317250?v=3","gravatar_id":"","url":"https://api.github.com/users/bucaran","html_url":"https://github.com/bucaran","followers_url":"https://api.github.com/users/bucaran/followers","following_url":"https://api.github.com/users/bucaran/following{/other_user}","gists_url":"https://api.github.com/users/bucaran/gists{/gist_id}","starred_url":"https://api.github.com/users/bucaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bucaran/subscriptions","organizations_url":"https://api.github.com/users/bucaran/orgs","repos_url":"https://api.github.com/users/bucaran/repos","events_url":"https://api.github.com/users/bucaran/events{/privacy}","received_events_url":"https://api.github.com/users/bucaran/received_events","type":"User","site_admin":false},"created_at":"2016-02-07T17:20:39Z","updated_at":"2016-02-07T17:20:39Z","body":">  scope that to the process currently being executed.\r\n\r\nThat's clever, and I wish it was like that too. But that trick only works for variables in Fish.\r\n\r\n```fish\r\nfunction foo\r\n    set -l x 1\r\n    begin\r\n        set -l x \r\n    end\r\n    echo $x # 1\r\nend\r\n```"}}