csh programming problem
Maarten Litmaath
maart at cs.vu.nl
Sat Mar 17 02:18:52 AEST 1990
In article <SCOTT.90Mar15190447 at osric.cs.odu.edu>,
scott at cs.odu.edu (Scott Yelich) writes:
)...
)eval f `repeat $#argv eval 'echo -n \"$1\"\ ; shift'`
It fails:
% set argv=('a\
b c')
% cat chkargs
#!/bin/sh
for i
do
echo "<$i>"
done
% eval chkargs `repeat $#argv eval 'echo -n \"$1\"\ ; shift'`
<a b c>
%
What the hell is wrong with using the `:q' modifier anyway?
)However, I still prefer ``foo "$@"'' for its simplicity.
I prefer sh for other reasons.
--
1) Will 4.5BSD have wait5()? |Maarten Litmaath @ VU Amsterdam:
2) Sleep(3) should be sleep(2) again.|maart at cs.vu.nl, uunet!mcsun!botter!maart
More information about the Comp.unix.wizards
mailing list