Commandline parameters incorrectly handled on *nix

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

Commandline parameters incorrectly handled on *nix

Postby koschate » Thu May 06, 2010 10:52 am

John, when you get your AIX environment working again, can you verify something in 8.0 for me? The default abt script in 7.5.2 ends like this:
Code: Select all
if [ "${0##*/}" = "abt" ]
  then
   $VASTROOT_75/bin/es -mcd $IMAGE $*
  else
   $VASTROOT_75/bin/es -no_break $IMAGE $*
fi

Unfortunately, this has the effect of causing quoted command line arguments to be broken into individual arguments prior to being passed into VA. For example, "My Parameter" ends up being treated as two parameters, "My" and "Parameter".

The script should end in these lines:
Code: Select all
if [ "${0##*/}" = "abt" ]
  then
   $VASTROOT_75/bin/es -mcd $IMAGE "$@"
  else
   $VASTROOT_75/bin/es -no_break $IMAGE "$@"
fi

which correctly pass on quoted parameters. I haven't checked, but this may also be an issue for other Unices as well.
koschate
[|]
 
Posts: 102
Joined: Thu Feb 01, 2007 7:24 am

Re: Commandline parameters incorrectly handled on *nix

Postby wembley » Fri May 07, 2010 12:47 pm

Thomas -

Thanks for the information (and the fix). It is broken on Linux also. Your change works there too (Linux runs bash rather than Korn, so I wasn't positive the same change would work even though the 2 shells are fairly compatible). Case 46385 fixed for V8.0.2.
John O'Keefe [|], Principal Smalltalk Architect, Instantiations Inc.
wembley
Moderator
 
Posts: 405
Joined: Mon Oct 16, 2006 3:01 am
Location: Durham, NC


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: No registered users and 1 guest