(ice-9 regex)
)
+;; The regex module may not be available, or may be broken.
+(define use-regex
+ (let ((os (string-downcase (vector-ref (uname) 0))))
+ (not (equal? "cygwin" (substring os 0 (min 6 (string-length os)))))))
+
;;
;; (octave notename accidental)
;;
(apply append (pitch->text-banter tonic)
(if user-name user-name '())
;; why does list->string not work, format seems only hope...
- (if (and (string-match "super" (format "~s" user-name))
+ (if (and use-regex
+ (string-match "super" (format "~s" user-name))
(or (pair? additions)
(pair? subtractions)))
'(("/" (type . "super")))