John Cremona wrote: >> I must admit I'm puzzled it needed the .sh on the end. Are you sure you had >> the >> execute permission on the version without the .sh ? > > Yes, definitely. (If not, even ./unixtime.sh would have failed.)
Fair enough. I don't know much about dash, but I know if you proceed the name of a script by 'sh', the script will execute even if it has no execute permissions. bash-3.2$ ls -l testcc.sh -rw-r--r-- 1 drkirkby staff 4781 Dec 8 16:35 testcc.sh bash-3.2$ sh testcc.sh GCC bash-3.2$ Anyway, it does not matter when the code is added to determine seconds since the Epoch, since the top of $SAGE_ROOT/spkg/install has #!/usr/bin/env bash In this case, the code will be run with bash - irrespective of what shell you use. >> I'm still puzzled though I must admit, why it says "No such file or >> directory", >> since the file clearly exists. I suppose I have never used the 'dash' shell, >> so >> don't know how it behaves. >> > > Nor me. But someone will try to build Sage with it one day! Very true. It's useful to get these things checked on many shells. > John Thanks John. Dave -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org