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)
|