Hi,
I am wondering what the fish equivalent of tcsh's (and other shells) word
expansion modifiers? By word expansion modifiers I am talking about the ability
to do things like:
set version 5.9
set major $version:r
set minor $version:e
set roman $version:s/1/I/:s/2/II/:s/3/III/:s/4/IV/
for example. Presumably I could do some pipeline with echo and sed but I'm
hoping there is a more elegant method.
The context is that I am trying to convert my tcsh setting to fish. Take this
snippet as an example:
switch ($OENV)
case 'aix':
if (${OENVVER:r} >= 5) then
setenv ARCH `uname -p`
endif
Apart from the fact that I will hopefully never use AIX 4 again what would be
the fish way to deal with this?
Thanks,
Andrew
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users