Skip to Content.
Sympa Menu

grouper-users - RE: gsh.sh script whitespace problem

Subject: Grouper Users - Open Discussion List

List archive

RE: gsh.sh script whitespace problem


Chronological Thread 
  • From: Chris Hyzer <>
  • To: "Imholz, John J." <>, "''" <>
  • Subject: RE: gsh.sh script whitespace problem
  • Date: Wed, 26 May 2010 17:06:33 -0400
  • Accept-language: en-US
  • Acceptlanguage: en-US

When I look at the code, I *think* all commands must be on their own line.
GSH is based on bean shell which allows multi-line commands. Not sure what
the constraint is there, or if there is a workaround, GSH predates me... :)

Regards,
Chris

-----Original Message-----
From: Imholz, John J.
[mailto:]

Sent: Wednesday, May 26, 2010 4:35 PM
To:
''
Subject: [grouper-users] gsh.sh script whitespace problem

At least I think it's a whitespace problem. I'm confused. (note: my
subjectIds look like this: "BR549:90067")

Why does this work:
for ( subject : getMembers("foo:bar" ) ) { print(
subject.getSubjectId().split( ":" )[1] ); }


but this does not:
for ( subject : getMembers("foo:bar" ) ) {
print( subject.getSubjectId().split( ":" )[1] );
}
// Error: unable to evaluate command: Parse error at line 1, column 69.
Encountered: <EOF>
// Error: unable to evaluate command: Sourced file: inline evaluation of: ``
print( subject.getSubjectId().split( ":" )[1] );'' : Attempt to resolve
method: getSubjectId() on undefined variable or class name: subject
// Error: unable to evaluate command: Parse error at line 1, column 1.
Encountered: }

jji



Archive powered by MHonArc 2.6.16.

Top of Page