expand -1 should work.

----------------------------------------------------------------------

oshapi: Need to import ifelse. Shouldn't be necessary

----------------------------------------------------------------------

asql2:

- Do all regions in parallel

- Optional function arg, providing compareto function for merging
results.

- Optional function arg for remote, doing the same thing. Then, dup
elim can be done in osh:

osh @foo [ asql2 "select sig, sig_scheme, ... from SCHEMA.external_file order by sig, sig_scheme" \
                 "sig, sig_scheme, *x: (sig, sig_scheme)" ] "node, sig, sig_schema, *x: (sig, sig_scheme)"


----------------------------------------------------------------------

doesn't work: ... | osh $

----------------------------------------------------------------------

osh -v1 sql "select * from foobar" 

doesn't print error message if foobar missing.

Problem: no error handler added!!!


----------------------------------------------------------------------

osh install -p: point to directory, not individual files.

----------------------------------------------------------------------

Reporting of remote asql2 syntax error still not working. E.g., reference
to missing column.

----------------------------------------------------------------------

[jao@jorenstein-D800 osh]$ osh -v2 @local [ gen 3 ^ f 'x: x / (x - 1)' ] $
@local#[#gen#3#^#f#x: x / (x - 1)#]#$
pipeline#7(opset#6(o: _Remote#0{-c: local}[]) ^ opset#9(e: _Out#10{-t}[ERROR: %s], o: _Out#8{-t}[]))
Caught exception during "ssh localhost -l root remoteosh"
Traceback (most recent call last):
  File "/home/jao/p4/engineering/main/python_tools/osh/oshprocess.py", line 202, in run
    object = self.stream().load()
UnpicklingError: could not find MARK

----------------------------------------------------------------------

sql command: 

- If host not specified, assume localhost.

- -d isn't working

----------------------------------------------------------------------

osh/archivas installation shouldn't overwrite .oshrc.

----------------------------------------------------------------------

osh gen <function> should do the same thing as osh f <function> ^
expand.

OR: osh expand ' ... some function ...'

----------------------------------------------------------------------

Look at optparse.

----------------------------------------------------------------------

Get rid of _check_options, scp_options

----------------------------------------------------------------------

agg:

Need a variation that generates output for each partial result?

----------------------------------------------------------------------

Need a form of copyto that copies from node's directory to the node,
(not same file to every node).

----------------------------------------------------------------------

squish '+ min max'

should be

squish + min max

----------------------------------------------------------------------

Missing from api:

- relabel
- n()
- Generalize stdin (or provide another command) to stream in file contents.

----------------------------------------------------------------------

install, installosh: Multi-column output if it doesn't fit in one.

----------------------------------------------------------------------

osh binary conflicts with operator shell. Allow for an alternate
executable name. 

----------------------------------------------------------------------

osh sh "echo ^" $

doesn't work. Input to parser is:

    sh#echo x^y #$

Need to prevent parser from looking inside "echo ^"

----------------------------------------------------------------------

Function or command to dump nodes in cluster.

----------------------------------------------------------------------

installosh error reporting is often unreadable. Multiline output
problem?

----------------------------------------------------------------------

Auto install

----------------------------------------------------------------------

oshtestssh:

- should work on all nodes in parallel.

- Get rid of install from config

- Duplication of code: cluster_configuration, _Host

----------------------------------------------------------------------

Get rid of stat class in path.

----------------------------------------------------------------------

Move oshtypes.process to osh package?

----------------------------------------------------------------------

osh API

----------------------------------------------------------------------

ssh:

- Centralize invocations

- Use -o BatchMode=yes

----------------------------------------------------------------------

Generation counter for installs. Record in /usr/share/osh/GENERATION

----------------------------------------------------------------------

Map support

- conversion between list of (key, value) and map.

----------------------------------------------------------------------

ssh usage:

- ssh options, e.g. "-o StrictHostKeyChecking=no", should be
controllable from .oshrc.

----------------------------------------------------------------------

Misc

- remoteop: printCommandLines assumes limited output (using
readlines). Allow for more.

replace remomteop.spawn with oshprocess
