TIP: Click on subject to list as thread! ANSI
echo: fidosoft.husky
to: SEAN RIMA
from: MARK LEWIS
date: 2020-06-28 15:00:00
subject: Outbound Report

  Re: Outbound Report
  By: Sean Rima to Benny Pedersen on Sun Jun 28 2020 15:25:56


 BP>> # is more or less commentary charter, so all after that should be
 BP>> ignored so it gives syntax fails since {} is not complete, hope i
 BP>> am wroung or learn more :)

 SR> I believe the way the script is written it is search for # at the
 SR> start of a line,

it does...

 SR> if is finds it, it is supposed to ignore it.

it removes it in the var...

 SR> But bash changed and the method no longer works. Maybe now it seems
 SR> it as a comment

what version of bash are you using, sean? it works fine here on all my machines
which vary from ubuntu 14.04 up to ubuntu 20.04...

scroll down about 2/3rds of this page:

https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.ht
ml


[quote]

${parameter#word}
${parameter##word}

    The word is expanded to produce a pattern and matched according to the
rules described below (see Pattern Matching). If the pattern matches the
beginning of the expanded value of parameter, then the result of the
expansion is the expanded value of parameter with the shortest matching pattern
(the ‘#’ case) or the longest matching pattern (the ‘##’ case) deleted.
If parameter is ‘@’ or ‘*’, the pattern removal operation
is applied to each positional parameter in turn, and the expansion is the
resultant list. If parameter is an array variable subscripted with ‘@’ or
‘*’, the pattern removal operation is applied to each member of the
array in turn, and the expansion is the resultant list.

[/quote]


)\/(ark
--- SBBSecho 3.11-Linux
* Origin: SouthEast Star Mail HUB - SESTAR (1:3634/12)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.