stack: look in core by default

This commit is contained in:
Russ Cox 2008-07-10 11:05:34 -04:00
parent c98946022a
commit fd652ac319

View file

@ -1,8 +1,11 @@
#!/usr/local/plan9/bin/rc #!/usr/local/plan9/bin/rc
if(~ $#* 0)
pid=core
if not
pid=$1 pid=$1
shift shift
if(! ~ $pid [0-9] [0-9]*[0-9] */core *.core core.* */core.*){ if(! ~ $pid [0-9] [0-9]*[0-9] */core *.core core.* */core.* core){
name=$pid name=$pid
pid=`{psu|awk '$NF=="'$name'" {print $2}'} pid=`{psu|awk '$NF=="'$name'" {print $2}'}
if(~ $#pid 0){ if(~ $#pid 0){