I have this shell script saved as a snippet:
#!/bin/bash
var1=[calls a snippet with a fixed rate]
var2=[gets the contents of a fill-in field]
var3=[calls a snippet with a fixed rate]
echo -n $(( var1 + var2 + (var3 * 2) ))
======
if I just run this shell script snippet, it asks for the fill-in field and does the calculation. But when it is nested in another snippet instead of the number, it shows “(name of snippet)”
Is this a timing issue of some sort as to when the nested shell script is run?
Any thoughts?
Thanks.
Paul
Great question, Paul. I’m checking in with the support and engineering folks to see if we have a workaround.
Hi Paul! We’ve done some testing and believe this should work. We’re curious if maybe something is happening with the nested snippet.
We’d love to take a closer look at this with you.
Can you email us at support@textexpander.com and share a copy of these Snippets with us?
You can get a link to share with us by doing the following:
The best way to do this is to first:
1. Create a new group.
2. Right-click on any of the Snippets you are having trouble with, select the option for “Duplicate”
3. Move the duplicated Snippets to the new Group.
To share your group with us:
1. Sign in to TextExpander.com using your web browser and select the new group.
2. Click the “Settings” option.
2. Scroll down to the “URL Sharing” heading, and enable URL sharing by clicking on the circle/switch.
3. This will provide you with a public URL. Please copy and paste that into the email you send to us.
I’ve created the public group and sent an email to support with the link. Thanks.