Ask Your Question

Revision history [back]

You can escape for shell and Sage:

./sage -c "print('test', '%s' %('\\\angle FAC'))"

You can escape for shell and Sage:

./sage -c "print('test', '%s' %('\\\angle FAC'))"

This will output :

test \angle FAC

You can escape for shell and Sage:

./sage -c "print('test', '%s' %('\\\angle FAC'))"

This will output :

test \angle FAC

Or escape only for the shell, and use a raw string for Sage:

$ ./sage -c "print('test', '%s' % (r'\\angle FAC'))"
test \angle FAC