On 2016-07-15 at 18:59 Barret Rhoden <[email protected]> wrote:
> if [ $# -lt 2 ]
> then
>       echo "$# args"
>       echo Usage: $0 PREEMPT_DELAY_USEC ARGS_FOR_LOCK_TEST
>       exit
> fi
> 
> it also didn't like:
> 
> if [ "$#" -lt "2" ]
> 
> (http://tldp.org/LDP/abs/html/comparison-ops.html)
> 
> but it did like:
> 
> if [[ $# -lt 2 ]]
> 
> This was in lockprov.sh.

What's interesting about this is that it works the first time, but
breaks on subsequent times.  For instance, the command 'm' is a script:

bash-4.3$ m pip 1
struct proc: 0xffff80013f91c080
Program name: bash

(more output, it worked)


bash-4.3$ m pip 1
Usage: /bin/m CMDS TO KERNEL MONITOR...

(now it's broken...)


bash-4.3$ bash
(get a new instance of bash)

bash-4.3$ m pip 1
struct proc: 0xffff80013f91c080
Program name: bash
(works again!)

bash-4.3$ m pip 1
Usage: /bin/m CMDS TO KERNEL MONITOR...
(but just once)

Something is broken there.

Barret

-- 
You received this message because you are subscribed to the Google Groups 
"Akaros" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to