On Thu, Jun 18, 2020, at 12:59, John Chludzinski wrote: > In the Bourne shell this works without hiccup: > > tar xf $SOCEDS_DEST_ROOT/examples/hardware/a10_soc_devkit_ghrd/tgz/*.tar.gz
How many files match that pattern? I don't need to know the number other than, Is it zero, one, or more than one. > How do I accomplish this with fish? I would think the same way. Have you tried it in fish? What happened? Copying and pasting the transcript (e.g. the error message if there is one) would be helpful. > How does the * function in fish? It functions in a similar way as * does in Bourne Shell descendants, but I assume that there might be some differences in behavior. It does behave a differently when it fails to match. In BASH, when the * fails to match, the shell leaves it unchanged. In fish, it triggers an error. Here is a troubleshooting tip that can help you figure out how the shell is performing wildcard substitution. Replace the command (i.e. "tar xf") with ls or echo in both Fish and the shell that you're using, and see how they compare. By the way, when your refer to "Bourne shell" are you really referring to Bourne shell? I suspect maybe not. Do you mean Bourne Again Shell? or Almquist Shell? or Debian Almquist Shell? or Korn Shell? They are all derived (not necenssarily in their source code, I mean in their behavior) from Bourne Shell and compatible in some ways with /bin/sh scripts. -- Contact me: I am available on SIP, Matrix/Riot, and Jami. Just ask for my address. _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users