[
https://issues.apache.org/jira/browse/QPID-1027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12600473#action_12600473
]
Alan Conway commented on QPID-1027:
-----------------------------------
Sorry for the delay, I'm quite busy at the moment. I'd like to resolve this
issue.
The link http://forum.java.sun.com/thread.jspa?messageID=9948827&tstart=0 is
to a discussion "Simple Shell Script To Add To Default Path?", I didn't see
mention of you mutating script technique - do you have another link for that?
The article is talking about doing the right thing in an *interactive* shell,
not an executable script. I understand that you might adapt your .profile
depending on the shell you run but not an executable script.
A script can only sensibly be run by the interpreter it was written for. I may
have used bash features inadvertently, so perhaps the script needs to be
stripped back to strictly bourne-shell features found on all Unixen. However
there's no way it will work on ksh or csh for example, so trying to make it
run with whatever you find in $SHELL is only likely to lead to confusion.
What is /bin/sh on Ubunto? I presume it's at least bourne-shell compatible?
The other alternative would be to rewrite the script in python or ruby to be
more portable. That would probably give a more maintainable script so I'd be
inclined to go that way but I have limited time to do the rewrite at the moment.
Let me know if I'm still missing the point.
> verify script is sensitive to shell in use
> ------------------------------------------
>
> Key: QPID-1027
> URL: https://issues.apache.org/jira/browse/QPID-1027
> Project: Qpid
> Issue Type: Bug
> Components: Qpid Examples
> Reporter: Senaka Fernando
> Assignee: Alan Conway
> Attachments: verify.patch.txt, verify_patch_java.patch.txt
>
>
> verify (found in C++ examples) script is sensitive to the shell in use. And,
> the fix incorporated in the attached patch that will specifically revert the
> script to use the type of shell in which it is being run. I was inspired by
> [1], which better describes the problem of scripts that are sensitive to the
> type of shell.
> [1] http://forum.java.sun.com/thread.jspa?messageID=9948827&tstart=0
> Regards,
> Senaka
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.