fish doesn't do math itself, unlike bash with its (( )) syntax. In this case it's probably easiest to use expr in a command substitution:
> set x 0 > set x (expr $x + 1) > echo $x 1 You might also consider bc or even dc, if you like RPN. —Tom On Tue, Jul 10, 2012 at 2:33 PM, Patrick <patr...@spellingbeewinnars.org> wrote: > Sorry for my poorly worded email > > I missed the increment part that I am particularly mixed up about > > set $x=$x+1 > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Fish-users mailing list > Fish-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fish-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users