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

   Hello mark!

28 Jun 20 14:56, you wrote to me:

 ml>   Re: Outbound Report
 ml>   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
 BP>>> be ignored so it gives syntax fails since {} is not complete,
 BP>>> hope i 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,

 ml> it does...

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

 ml> it removes it in the var...

I had to change it to the method I showed earlier as it was corrupting the var

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

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

I am using 18.x on the fiodnet PC and 20.x on the laptop and both gave the same
error

 ml> scroll down about 2/3rds of this page:

 ml> https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Exp
 ml> ansion.html


 ml> [quote]

 ml> ${parameter#word}
 ml> ${parameter##word}

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

 ml> [/quote]


Maybe it is something to do with the fact that I ssh into my PC's

Sean


--- GoldED+/OSX 1.1.5-b20180707
* Origin: A Pointless Point in Connemara (2:263/1.1)

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™.