help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

interfacing octave with tcsh


From: Dr. Aaron Herrnstein
Subject: interfacing octave with tcsh
Date: Fri, 9 Nov 2007 18:03:42 -0500

I am experiencing difficulties when using an octave script to define a shell
variable via command line substitution (ie, the backquote character) in the
tcsh and csh shells.  The following example works properly in CentOS, but
triggers the errors listed below in Fedora and Cygwin.  I would appreciate
any suggestions you can offer.

% cat > ./octprint.m << EOF
#!/usr/bin/octave -q
fprintf('%d', 5)
EOF
%
% chmod u+x ./octprint.m
%
% @ atvar = `./octprint.m`
@: Expression Syntax.
%
% set setvar = `./octprint.m`
% echo $setvar
echo: No match.


Thanks,

Aaron



reply via email to

[Prev in Thread] Current Thread [Next in Thread]