Posts

Showing posts from October 6, 2018

How to use an escaped file-name string saved within a bash variable in a new shell command? [duplicate]

Image
Clash Royale CLAN TAG #URR8PPP up vote 2 down vote favorite This question already has an answer here: Why I can't escape spaces on a bash script? [duplicate] 3 answers How to pass directory with escaped space to variable? 3 answers Problem: I have an escaped string saved within a variable: escapedFileName='/dbDumps/Mon Oct 1 15:22:50 UTC 2018.sql' but whenever I try to use this file name within the following command, I get an error message saying that this path does not exist (even though it does). /usr/bin/mysql -u root -pmypassword system < "$escapedFileName"; When i use the path and not the string it works : /usr/bin/mysql -u root -pmypassword system < /dbDumps/Mon Oct 1 15:22:50 UTC 2018.sql What am I doing wrong ? linux bash share | improve this question edited Oct 1 at 20:29 roaima 40.9k 5 47 111 asked Oct 1 at 17:35 Lukas 13 2 New contributor Lukas is a new contributor to this si...

sfdx force:lightning:lint throwing a Parsing Error with ES6 syntax

Image
Clash Royale CLAN TAG #URR8PPP .everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0; up vote 7 down vote favorite 1 I'm running the SFDX lightning linter on a lightning component as part of a pull request for my organization, but am hitting the following error: error Parsing error: Unexpected token > Line:57:48 searchMap = searchMap.filter(item => item.get("fieldName") !== component.get("v.fieldName")); ^ The issue seems to be that the Lightning Linter does not support ES6 syntax, while the lightning language does. I know from other questions on here that ES6 was added to "the linter" about a year ago and has been supported in the language for some time, but its not clear if it was added to the specific CLI linter at that time. Does anyone know of a way around this? Am I just doing something wrong in getting the linter to accept ES6 syntax? Or has it simply not been added yet? I'm very con...