sql: with argument substitution

2011-04-13 Thread Ole Tange
At my presentation yesterday a person in the audience suggested being able to make arguments when making an sql-script executable. So something like: #!/usr/bin/sql -Y {2} SELECT * FROM mytable WHERE user = '{1}'; You could then call that script like: ./myscript joe mysql:/// and: {1

Vote: Should $PARALLEL_PID {#} count from 0 or 1

2011-04-13 Thread Ole Tange
I have implemented {#} as an alias for $PARALLEL_PID in the current Git version. See http://savannah.gnu.org/bugs/?33005 It currently counts from 1 just like $PARALLEL_PID. Dear users: Would you prefer it counts from 0 or from 1? Please elaborate why. /Ole

Re: Vote: Should $PARALLEL_SEQ {#} count from 0 or 1

2011-04-13 Thread Ole Tange
On Thu, Apr 14, 2011 at 12:31 AM, Ole Tange wrote: > I have implemented {#} as an alias for  $PARALLEL_PID in the current > Git version. See http://savannah.gnu.org/bugs/?33005 > > It currently counts from 1 just like $PARALLEL_PID. Not _PID but _SEQ! > Dear users: Would you prefer it counts fro