-
Notifications
You must be signed in to change notification settings - Fork 764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[rosbash] Add roscat to display file contents as stdout #99
Conversation
e35ffbf
to
fc5d8dd
Compare
Upstream PR: ros/ros#99 Modified: - jsk_tools/env-hooks/99.jsk_tools.bash - jsk_tools/env-hooks/99.jsk_tools.zsh
Starting with the simpler problem of just displaying the file might it be cleaner. Just implement |
That would be better 👍 |
76035f9
to
f5fcc9a
Compare
I updated the commit. |
f5fcc9a
to
e7971cd
Compare
That looks a lot cleaner. @dirk-thomas it looks good to me but I haven't had a chance to test it. |
I tried I also think |
I fixed the code for rosbash. Also should I remove roscat? |
I would suggest to remove |
I think roscat is valuable, since there's no quick way to view files. But I agree that rosview seems redundant with roscat ... | less and is probably worth avoiding the extra complexity for future maintenance. |
I'd give +1 to both commands. While I understand that |
I have tried Regarding Thank you for iterating on this! |
85a240c
to
33c0184
Compare
Thanks, for the comments! |
@@ -279,6 +279,26 @@ function roscp | |||
cp $arg $argv[3] | |||
end | |||
|
|||
function roscat | |||
set -l arg | |||
if test (count $argv) = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This condition hasn't been updated. Have you tried this case as it is? Does this work with fish?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, I overlooked fish, will soon fix it.
2016年3月3日木曜日、Dirk Thomasnotifications@github.comさんは書きました:
In tools/rosbash/rosfish
#99 (comment):@@ -279,6 +279,26 @@ function roscp
cp $arg $argv[3]
end+function roscat
- set -l arg
- if test (count $argv) = 0
This condition hasn't been updated. Have you tried this case as it is?
Does this work with fish?—
Reply to this email directly or view it on GitHub
https://github.com/ros/ros/pull/99/files#r54814099.
和田 健太郎 / Kentaro Wada
http://wkentaro.com
I updated the commit, but cannot try to use on fish because I don't know how to use ros with fish. (there's no setup.fish, is it?) |
You can just source the file you modified directly in a fish shell and should be able to use the commands defined in there. |
There is the below error even if on jade-devel branch.
|
Can you please look into a fix for this? This should be backported to Indigo once it is merged. |
hmm, I can't find how to fix it. |
e1b7ca5
to
c19eb7a
Compare
I removed the code for fish.
|
The return code still needs some work. When running e.g. But calling |
Thanks, I fixed it. |
|
I fixed it. Please review again. On Thu, Mar 10, 2016 at 2:30 AM, Dirk Thomas notifications@github.com
和田 健太郎 / Kentaro Wada |
That looks good now. Can you please squash the commits before the merge. Thank you! |
Squashed. |
[rosbash] Add rosview to show file contents
Cherry-picked to indigo-devel: 696efa7 |
Thanks. |
In most of my cases, I don't want to edit file but just view.
That's why I'm adding this function, the candidates of names: