Skip to content
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

add roscd, rosls support #210

Merged
merged 3 commits into from
Mar 18, 2019
Merged

add roscd, rosls support #210

merged 3 commits into from
Mar 18, 2019

Conversation

kejxu
Copy link
Contributor

@kejxu kejxu commented Mar 5, 2019

add roscd, rosls support by following the logic in ros/rosbash

also add Python implementation for _ros_location_find and _ros_decode_path on Windows to remove dependency on Linux shell features

reldir = os.path.sep.join(parameters[1:len(parameters)])
else:
if len(argv) <2 or argv[1] != 'forceeval':
print (ERROR_PREFIX + package_name)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the space before the open parenthesis. The error message Error: <pkgname> doesn't seem very helpful. Also error messages should be printed to stderr.

Same below.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for pointing this out, updated to print to stderr

@@ -8,6 +8,9 @@ install(FILES rosbash rosfish rostcsh roszsh
if (WIN32)
install(PROGRAMS scripts/rosrun.bat
DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION})

install(PROGRAMS scripts/findpath.py scripts/roscd.bat scripts/rosls.bat
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The filename findpath sounds very generic. How about renaming it to rosfindpath?

Nitpick: please remove one of the two spaces after PROGRAMS.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the name suggestion, updated to rosfindpath, removed extra space

@dirk-thomas
Copy link
Member

Thanks for the patch.

@dirk-thomas dirk-thomas merged commit 496184d into ros:kinetic-devel Mar 18, 2019
@kejxu kejxu deleted the add_roscd_rosls_support branch March 18, 2019 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants