Skip to content
Advertisement

Tag: dash-shell

how to tell the version number of dash?

I have a dash shell installed as /bin/dash. I checked the manual of dash, which is the same as the POSIX shell manual, and there is nothing there to tell the version of the shell. dash –version does not work. How to tell the version number of dash I have?? Added: some people are pointing me to Ubuntu commands, well,

Check for substring in Shell without Bashisms

I’m trying to write a shell script, and in it I have to look for the presence of -32 in a string. Unfortunately I have to do it without using any bashisms as it has to run on computers running Dash. I tried case ${1+”$@”} in *-32*);; but that will pick up something like -321. Is there a way to

Advertisement