You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Noah Slater (JIRA)" <ji...@apache.org> on 2009/01/23 22:41:59 UTC
[jira] Updated: (COUCHDB-169) POSIX shell incompatibilities
[ https://issues.apache.org/jira/browse/COUCHDB-169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Noah Slater updated COUCHDB-169:
--------------------------------
Fix Version/s: 0.9
Priority: Blocker (was: Major)
> POSIX shell incompatibilities
> ------------------------------
>
> Key: COUCHDB-169
> URL: https://issues.apache.org/jira/browse/COUCHDB-169
> Project: CouchDB
> Issue Type: Bug
> Components: Infrastructure
> Environment: Solaris
> Reporter: Noah Slater
> Assignee: Noah Slater
> Priority: Blocker
> Fix For: 0.9
>
>
> > My local "checkbashisms" doesn't seem to complain at all. The [ ... ] syntax is just a shortcut for "test" and I would prefer to avoid it if possible. Could you check for me that using "test expr" wouldn't work in its place.
>
> No, "test expr" doesn't work. After test you can only have arguments to test, not shell expressions. It is possible of course to do:
>
> if test `echo 2> /dev/null >> $PID_FILE; echo $?` -gt 0; then
>
> For proof, see the man page: http://docs.sun.com/app/docs/doc/816-5165/test-1?l=en&q=man&a=view
>
> > This seems reasonable, though checkbashisms doesn't report anything.
> >
> > I am wondering if your Solaris shell is POSIXly correct. Could you provide me with a pointer to its manual, please?
>
> It doesn't get more POSIX than Solaris :).
>
> $ /bin/sh
> $ echo $(echo yes)
> syntax error: `(' unexpected
>
> Here is the man page. Note that the "Command substitution" section doesn't mention anything about $() syntax.
>
> http://docs.sun.com/app/docs/doc/816-5165/sh-1?l=en&q=man&a=view
> You may want to have a our collaborative notes over there:
>
> - http://wiki.joyent.com/accelerators:setup-couchdb
> - http://discuss.joyent.com/viewtopic.php?id=24108
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.