Hi, I've recently discovered fish and am really impressed. But I have a question concerning process expansion. Look at the follow examples
count (echo -n 1) # shows 1 count (echo -n 1 2) # shows 1 count (echo -n 1 2 3) # shows 1 count (echo -n) # shows 0 I understand that in the first three lines the value of (...) is a single string, thus a single parameter passed to count. In the last example nothing is printed so nothing is passed count and its parameter count is 0. Now it happens that I have a situation where some command may return either a non-empty string or nothing, i.e. an empty string. In this situation I want the outer command being passed an empty argument instead of nothing, i.e. outer p1 (inner) p2 should call outer with three arguments in all cases, whether inner returns an empty string or not. Is there an easy way to achieve this? And wouldn't it make the whole command more reliable if one would know that (inner) *always* returns exactly one argument? Thanks, Frank ------------------------------------------------------------------------------ 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