Scot Mcphee

Results 13 comments of Scot Mcphee

I am using sublime text (in the main) and Pandoc markdown to write my PhD thesis, the Pandoc support is spotty at best. I'd volunteer to maintain the package for...

The output appears unchanged: ``` $ make prepare command -v xetex >/dev/null 2>&1 || { echo "Latex is not installed. Please run make prepare-latex for a minimal installation." >&2; exit...

yeah absolutely it looks right in the makefile. I blew everything away and pulled it down again from the might_test file as you suggested above. line 103: ``` if [[...

``` $ echo $OSTYPE darwin17 ```

Found this snippet on a GitHub gist - https://gist.github.com/britzl/267a70d2cf144d651285 ``` case "$OSTYPE" in solaris*) echo "SOLARIS" ;; darwin*) echo "OSX" ;; linux*) echo "LINUX" ;; bsd*) echo "BSD" ;; *)...

It still thinks it's interrogating a variable called "STYPE" rather than "OSTYPE (at least that's what it echoes): ``` if [[ "STYPE" == "darwin*" ]]; then open source/00-metadata.md; else xdg-open...

I added a new make target to test: ``` ostype: @echo "$OSTYPE" ``` produces the output ``` $ make ostype STYPE ``` changing that to ``` ostype: @echo "$$OSTYPE" ```...

changing the line to if [[ "$$OSTYPE" == "darwin17" ]]; then open source/00-metadata.md; else xdg-open source/00-metadata.md; fi made it work correctly. although the default editor for .md files is Xcode...

Using this regular expression also returned success: ``` if [[ "$$OSTYPE" =~ ^(darwin) ]]; then open source/00-metadata.md; else xdg-open source/00-metadata.md; fi ```

this also misbehaves. ``` if [[ STYPE == darwin* ]]; then open source/00-metadata.md; else xdg-open source/00-metadata.md; fi ``` it's like it eats the $O every time. but a double $$...