On 4/20/06, Philip Ganchev <[EMAIL PROTECTED]> wrote:
> On 4/19/06, ray hammond <[EMAIL PROTECTED]> wrote:
> [...]
> > switch $menu
> [....]
> > case 4
> > cat /etc/hosts | $VIEWER
> > case 5
> > ifconfig | $VIEWER
> > end
>
> This will not work either because Fish does not expand "$VIEWER":
>
> fish> echo $VIEWER
> more
>
> fish> echo hello | more
> hello
>
> fish> echo hello | $VIEWER
> fish: Unknown command $VIEWER
> echo hello | $VIEWER
> ^
>
> (The arrow above is under the "$".)
>
Oh, right. Never tried those alternatives. Here is how to do this
properly in fish:
if test "$OPSYSTEM" = "TANDEM";
function viewer; more; end
else
function viewer; less; end
end
...
case 4
cat /etc/hosts | viewer
case 5
ifconfig | viewer
end
--
Axel
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users