9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] broken cmd
@ 2002-03-31  5:39 rob pike, esq.
  0 siblings, 0 replies; 2+ messages in thread
From: rob pike, esq. @ 2002-03-31  5:39 UTC (permalink / raw)
  To: 9fans

Yes, a debugging statement leaked during of the last release.
There was a 9fans message about this shortly after. Apologies.

-rob


> Hi,
> 
> In the initial Release 3 (summer of 2000?) the 'src'
> command worked for both shell scripts and '8.out' files.
> In a distribution that was downloaded from the Plan 9
> web site, yesterday, the 'src' command no longer works
> for '8.out' files.
> 
> I got it to work by modifying /rc/bin/src:
> 
>   term% diff /rc/bin/src.original /rc/bin/src
>   7c7
>   <   echo $sym | db $1 | sed '1d;/symbol not found/d;s/.*\(\) //'
>   ---
>   >   echo $sym | db $1 | sed '1,2d;/symbol not found/d;s/.*\(\) //'
> 
> There may have been an extra 'dprint' placed in /sys/src/cmd/db/main.c,
> which could explain why two lines instead of one must be deleted from
> the output of 'db'.
> 
> Regards,
> 
> Don Brownlee



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [9fans] broken cmd
@ 2002-03-31  2:45 Donald Brownlee
  0 siblings, 0 replies; 2+ messages in thread
From: Donald Brownlee @ 2002-03-31  2:45 UTC (permalink / raw)
  To: 9fans

Hi,

In the initial Release 3 (summer of 2000?) the 'src'
command worked for both shell scripts and '8.out' files.
In a distribution that was downloaded from the Plan 9
web site, yesterday, the 'src' command no longer works
for '8.out' files.

I got it to work by modifying /rc/bin/src:

  term% diff /rc/bin/src.original /rc/bin/src
  7c7
  <   echo $sym | db $1 | sed '1d;/symbol not found/d;s/.*\(\) //'
  ---
  >   echo $sym | db $1 | sed '1,2d;/symbol not found/d;s/.*\(\) //'

There may have been an extra 'dprint' placed in /sys/src/cmd/db/main.c,
which could explain why two lines instead of one must be deleted from
the output of 'db'.

Regards,

Don Brownlee



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-03-31  5:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-31  5:39 [9fans] broken cmd rob pike, esq.
  -- strict thread matches above, loose matches on Subject: below --
2002-03-31  2:45 Donald Brownlee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).