Lightweight command-line shell, used as the default `/bin/sh` on Ubuntu

learn more… | top users | synonyms

0
votes
2answers
66 views

How to run and where to save a downloaded package on Ubuntu?

There are two ways to download a package: GUI & CLI (via terminal). I tried the first one and can run the package via terminal only. I want the app to appear on Dashboard and also to be findable ...
-3
votes
1answer
42 views

Scripting a script that tests a shell [closed]

I have a custom shell and want to test its arithmetic function. I wrote a script to test it and it performs the arithmetic but it is also trying to execute the result as a program. printf "******...
0
votes
1answer
20 views

How can I make pasting work like yanking?

If I press ctrl+y (yank) in some programs, then the program will output what's in the clipboard to the current selected screen area. But why doesn't it work from the terminal? I would like a more ...
0
votes
3answers
53 views

string “if” statement comparing is string empty

I have problem checking if string is empty. I get first column of ls -l info and try to grep string searching for "x". If string is empty, I should countinue. But whenver string is empty or not, I ...
1
vote
2answers
81 views

/bin/sh, /bin/bash and /bin/dash all broken, how can I install them again

Removed all /bin/sh, /bin/bash and /bin/dash. I cannot install them because dpkg and apt-get need a shell to install and there is no shell available. I'm still logged in and my Ubuntu is still running....
3
votes
1answer
73 views

Line editing in dash

In bash or mksh it is possible to move around the typed line word by word, using shortcuts such as ESCB. That doesn't work in ksh or dash. As far as I understand from googling, this has something to ...
0
votes
1answer
171 views

Ubuntu internal error /bin/dash

I am getting this error every time I boot into Ubuntu. "Sorry, Ubuntu 14.04 has experienced an internal error" I am suspecting it to cause an annoying hanging of terminal applications when ...
2
votes
1answer
459 views

Dash is empty, applications do not appear

I use Unity on Ubuntu 14.04. In Dash, applications are not present. Folders&files and plugins are there though. I tried : unity --reset sudo apt-get purge unity-lens-applications unity-lens-...
1
vote
0answers
51 views

Equivalent of logname for profile

I'm getting an error when entering my session because I'm using logname in my .profile, and apparently Ubuntu doesn't like it. It says something along the lines of logname: login name not found I ...
0
votes
1answer
1k views

Terminal shows black screen Ubuntu 14.04

When I open the terminal in my Ubuntu 14.04 LTS, it shows a black window with no buttons. Nothing's visible, not even the minimise or close button. However all the commands that I type, work perfectly....
0
votes
1answer
451 views

Record screen at bootup using ffmpeg in 5 minute segments (12.04)

So I've played around with this quite a bit but at this point I've managed to hit a wall in figuring the next step. I have this script that works from an ssh tunnel to record display :0.0 #!/bin/...
3
votes
1answer
249 views

What's the difference between system shell and login shell?

I recently encountered that my /bin/sh is a symlink to dash, which is apparently default system shell for ubuntu since its 6.10 release. I didn't know system shell is different from login shell. I ...
1
vote
1answer
334 views

Solving $PATH obfuscation by /bin/sh (dash)

This question is a follow-up from http://unix.stackexchange.com/questions/126955/percent-in-path-environment-variable. I post it here, since it is more distro-specific. The shell used by default for ...
-2
votes
1answer
223 views

How to make a shell script pipe aware

I have the following script: #!/bin/sh [ "${#}" -eq "0" ] && (printf "%s\\n" "${0}: word ..." >&2; exit 1) _whats() { [ -z "${1}" ] && return 1 [ -z "${2}" ] &&...
0
votes
2answers
98 views

command line not working

after I initially installed ubuntu , I can run 'll' in my terminal. But after I checked a "Run command as login shell" in terminal preferences I cannot run "ll" command any more in terminal. ...
2
votes
0answers
456 views

How to make CFLAGS work with the dash shell?

My impression is that while setting the CFLAGS variable is effective when bash is the default shell, it doesn't make an effect with dash (the Debian Almquist shell). First of all please correct me if ...
5
votes
2answers
1k views

How to find the version of the Dash shell on Ubuntu /bin?

I would like to know if there is a way for find the shell Dash version. I tried several commands like : dash -v, dash -V, dash --version, but no one works. Dash Shell Wikipedia : http://en.wikipedia....
1
vote
2answers
2k views

Multiply with decimal numbers in bash [closed]

When i run p=0.1 k=2 while [ $p \< 1 ] do echo $p p=$(echo "scale=2; $p*$k" | bc) done i have this result 0.1 .2 .4 .8 What can i do to have 0.1, 0.2, 0.4 and 0.8 ?
2
votes
2answers
512 views

Run shell script downloaded from web

I have a .sh script (wget-20121105144134.sh) which I downloaded from the web. The script contains codes to download huge climate data files. Can you tell me how to run this file on Linux? It is easy ...
3
votes
2answers
5k views

How to replace/fix a messed up /bin/sh and /bin/dash

I have corrupted my /bin/sh and have no idea how to replace it. I accidentally copied over it. How can I fix this? I am running Ubuntu Server 11.10, no X. update: I have tried the fix that was ...
10
votes
3answers
5k views

How can my script determine whether it's being run by bash or dash?

I'm running a fresh Oneiric install (i.e. not an upgrade) on two different systems and running into the same set of seemingly related problems. The most frustrating of the bunch is that, when I use ...