Mercurial > hg > toybox
annotate scripts/findglobals.sh @ 1393:3e8ab37a4b60 draft
Find bugfixes.
The check for -print vs -print0 was tested before I optimized out the "-" in the strcmps, and I didn't adjust the offset or retest it. (Ooops.)
Also, I wasn't clearing the ! value when descending into parentheticals, so "find . -name blah -o \! \( -stuff -o -thing \)" acted like it had a spurious second ! before -stuff inside the parentheses.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 18 Jul 2014 18:31:41 -0500 |
parents | a3268a1c055e |
children |
rev | line source |
---|---|
880
a3268a1c055e
Quick sniff test to find leaked global variables.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
1 #!/bin/bash |
a3268a1c055e
Quick sniff test to find leaked global variables.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
2 |
a3268a1c055e
Quick sniff test to find leaked global variables.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
3 # Quick and dirty check to see if anybody's leaked global variables. |
a3268a1c055e
Quick sniff test to find leaked global variables.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
4 # We should have this, toy_list, toybuf, and toys. |
a3268a1c055e
Quick sniff test to find leaked global variables.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
5 |
a3268a1c055e
Quick sniff test to find leaked global variables.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
6 nm toybox_unstripped | grep '[0-9A-Fa-f]* [BCDGRS]' | cut -d ' ' -f 3 |