Re: [9fans] Help with a sam cleanup script

2021-08-03 Thread Charles Forsyth
to avoid errors, perhaps something along the lines of

X g/$/v/$/a
this is a long block comment.
it has no effect.
.

X prevents ?no current file

there are probably even shorter variants

On Tue, Aug 3, 2021 at 5:31 PM  wrote:

> On Tuesday, 3 August 2021, at 6:29 PM, fwrm wrote:
>
> As for comments in scripts, if you use ssam(1) to run them the easiest way
> would be starting the lines you want to be ignored with a character that
> isn't a sam command (this will work because ssam sends stderr to /dev/null).
>
> I am very grateful to you for this. Thanks so much.
> *9fans * / 9fans / see discussions
>  + participants
>  + delivery options
>  Permalink
> 
>

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T10b1d559ae7d981e-Mc443cf253463a264c625ac19
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Help with a sam cleanup script

2021-08-03 Thread revcomninos
On Tuesday, 3 August 2021, at 6:29 PM, fwrm wrote:
> As for comments in scripts, if you use ssam(1) to run them the easiest way 
> would be starting the lines you want to be ignored with a character that 
> isn't a sam command (this will work because ssam sends stderr to /dev/null).
I am very grateful to you for this. Thanks so much. 
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T10b1d559ae7d981e-M70e3d776bf3670824bf03f7e
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Help with a sam cleanup script

2021-08-03 Thread fwrm via 9fans
As for comments in scripts, if you use ssam(1) to run them the easiest way 
would be starting the lines you want to be ignored with a character that isn't 
a sam command (this will work because ssam sends stderr to /dev/null).
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T10b1d559ae7d981e-M0ec1abfa8e992698915509ca
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Help with a sam cleanup script

2021-08-03 Thread fwrm via 9fans
> In any event, is there not a way to run the script from within sam without 
> using that particular version?

There is:
,| ssam -f your_script
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T10b1d559ae7d981e-M4bd20ac371578e1e0514911e
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription