Does it work if you replace the line with

if [[ "$1" == "--notebook="* || "$1" == "-n="* || "$1" == "-notebook="* ]]; 
then


On Monday, January 5, 2015 9:59:17 PM UTC+1, kcrisman wrote:
>
> Hi!  Very old versions of bash do not support the following regex thingie 
> in shell:
>
> if [[ "$1" =~ "--notebook="* || "$1" =~ "-n="* || "$1" =~ "-notebook="* 
> ]]; then
>     sage-cleaner &>/dev/null &
>     exec sage-notebook "$@"
> fi
>
> Is there an obvious way to remove the =~ from this (necessary since 
> different notebooks are now supported), or not?  If so, what would the best 
> change be to make a "custom version" that was not officially supported by 
> Sage, supposing someone wanted to remove this?  (Of course, one could just 
> remove the line completely but that removes the option for non-default 
> notebook.)
>
> Thanks!
> - kcrisman
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to