Questions tagged [dash]

The Dash shell, a POSIX-compliant derivative of the Almquist shell used as /bin/sh in Debian, Ubuntu and other Linux distributions

Dash is a with POSIX features and little more. It is derived from the Almquist shell , originally to serve as /bin/sh on Debian, and also used in Ubuntu and other derivatives and other Linux distributions. Dash is smaller and faster than Bash , but has fewer features.

Use this tag if your question is specifically about Dash. If your question is about Bourne/POSIX shells in general, use .

169 questions
23
votes
3 answers

Why don't my arrow keys work in sh?

I recently installed Ubuntu and when I run sh on the Terminal my arrow keys don't work so I can't go through my call history or edit whatever I'm typing. It just comes out as weird characters like ^[[A . The login shell is bash and it works fine but…
Joe
  • 231
9
votes
2 answers

How to find out the version number of `dash` without resorting to package management systems?

I have been using bash most of the time and has just started playing with other shells. I started with dash and tries to find out its version number but the usual method like -v or $version does not work. I can understand that --version is not going…
Weijun Zhou
  • 3,368
1
vote
1 answer

How to not split words

I have a list of commands in a file called cmds, one command per line. I want to grab the last command, set it in a variable last_command and run it later. with $last_command or "$last_command", or whatever is more appropriate. I start by getting…
0
votes
3 answers

DASH scripting errors: I don't think I know how to set up variables correctly

#!/bin/sh export $REG=0x000000 export $DONE=0x4A9FFF while $REG -le $DONE do (($REG+1)) printf 'wm8280_reg get 0x'$REG'\r\n' sleep 1 done This leads to the errors: ./wm8280_reg_get1.sh: line 3: export: `=000000': not a valid…