|
From: | RC Crozier |
Subject: | Re: shell script location |
Date: | Tue, 08 Jan 2013 17:54:19 +0000 |
WFM, what OS are you using and what Octave version? address@hidden:~$ ./lol.m ans = lol ans = /home/jordi/lol ans = /home/jordi/lol.m address@hidden:~$ cat lol.m #!/usr/local/bin/octave -q mfilename mfilename fullpath mfilename fullpathext - Jordi G. H.
Sorry I sent some nonsense in the last email I meant: bash-4.1$ cat ./temp/lol.m #! /home/s0237326/bin/share/bin/octave -qf x = which(mfilename) whos x disp(which(mfilename)) bash-4.1$ ./temp/lol.m x = Variables in the current scope: Attr Name Size Bytes Class ==== ==== ==== ===== ===== x 0x0 0 char Total is 0 elements using 0 bytes bash-4.1$ -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
[Prev in Thread] | Current Thread | [Next in Thread] |