MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: ! operator


DongGook Park wrote:
> This behaviour seems quite suspicious?

The "!" operator seems to do different things depending on whether it is
lexed at the front of a line (excluding whitespace), or parsed as a pre-
(Not) or post-fix (Factorial) operator. From the command-line MathKernel on
a Linux box:

In[1]:= !MemberQ[{1,2,3},3]
/bin/bash: line 1: MemberQ[1,3]: command not found

So it seems to be using the shell, bash, to execute something. Note that it
isn't executing quite what is was given though... :-)

-- 
Dr Jon D Harrop, Flying Frog Consultancy
http://www.ffconsultancy.com


  • Prev by Date: Re: OSX version of Extrapackages folder
  • Next by Date: Re: cannot evaluate in HelpBrowser (Win XP)
  • Previous by thread: Re: ! operator
  • Next by thread: Re: ! operator