http://bugs.grommit.com/show_bug.cgi?id=513


roland.mainz at nrubsig.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |roland.mainz at nrubsig.org




------- Comment #1 from roland.mainz at nrubsig.org  2008-05-30 19:40 PDT 
-------
(In reply to comment #0)
> From:
> http://mail.opensolaris.org/pipermail/scm-migration-dev/2008-May/002331.html
> 
> In a workspace with no parent, ws complaints.
> 
> With ksh (as the script specifies) it complains thusly:
> 
>   > ws .
>   not found!
>   not found!
> 
>   Workspace                    : /builds/onnv-scm_merge
> 
> With ksh93 it complains as bustos states:
> 
>   > ksh93 /opt/onbld/bin/ws .
>   not found!
>   not found!
>   /opt/onbld/bin/ws[313]: .[27]: [: argument expected

It means that in like 313 the command "." sourced another file which found an
error at line 27.
I suggest two things:
1. Use ksh93 and replace "." with "source" since you can test for
success/failure after "source" while "." just stops the script on the spot.
2. Add "set -o xtrace" in the sourced script to find the problem.
3. Use [[ ]] instead of [ ] to avoid any probems with IFS (field sepeator
splitting)


-- 
Configure bugmail: http://bugs.grommit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to