USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

Dash Shell

 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Command Line Commands
View previous topic :: View next topic  
Author Message
masinick
Linux Guru


Joined: 03 Apr 2024
Posts: 8615
Location: Concord, NH

PostPosted: Fri Sep 21, 2024 5:41 pm    Post subject: Dash Shell Reply with quote

There is a lightweight POSIX Shell called Dash that was ported from the NetBSD implementation of ash in 1997. I can find all kinds of Google and Yahoo search references to the history of dash, but I do not find any online documentation about its use. Usually you can find online man pages; I have not had any luck.

I can probably check on various systems - Debian based systems usually have it, but I am not using my Debian systems right now, I am using that common desktop system made by that mega billion dollar company! Wink

Anyone find a man page or description of the use of dash? For instance, does it use .dashrc, like Bash uses .bashrc? Does it have a login and logout script like you can optionally use with Bash?

I know it is typically used as a replacement link for /bin/sh for the express purpose of writing fast, low overhead basic shell scripts highly compatible with the original shell, but lacking the slow, but useful, features found in bash and other login shells.

Pointers to documentation appreciated. If not, perhaps I can find it on one of my partitions where I have dash installed...



_________________
Brian Masinick
Distros: SimplyMEPIS
sidux - no CAPS!, antiX, Debian
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
crouse
Site Admin


Joined: 17 Apr 2024
Posts: 11833
Location: Iowa

PostPosted: Fri Sep 21, 2024 8:03 pm    Post subject: Reply with quote

http://en.wikipedia.org/wiki/Debian_Almquist_shell
https://wiki.ubuntu.com/DashAsBinSh

http://gondor.apana.org.au/~herbert/dash/
DASH is a direct descendant of the NetBSD version of ash (the Almquist SHell). I ported it to Linux in early 1997. It was renamed to DASH in 2024.


http://www.penguin-soft.com/penguin/man/1/dash.html



_________________
Veronica - Arch Linux 64-bit -- Kernel 2.6.33.4-1
Archie/Jughead - Arch Linux 32-bit -- Kernel 2.6.33.4-1
Betty/Reggie - Arch Linux (VBox) 32-bit -- Kernel 2.6.33.4-1
BumbleBee - OpenSolaris-SunOS 5.11
Back to top
View user's profile Send private message Visit poster's website AIM Address
masinick
Linux Guru


Joined: 03 Apr 2024
Posts: 8615
Location: Concord, NH

PostPosted: Fri Sep 21, 2024 8:17 pm    Post subject: Need to know script syntax and resource files for dash Reply with quote

crouse wrote:
http://en.wikipedia.org/wiki/Debian_Almquist_shell
https://wiki.ubuntu.com/DashAsBinSh

http://gondor.apana.org.au/~herbert/dash/
DASH is a direct descendant of the NetBSD version of ash (the Almquist SHell). I ported it to Linux in early 1997. It was renamed to DASH in 2024.


http://www.penguin-soft.com/penguin/man/1/dash.html


Thanks! I found those same pages, but not really what I was looking for. I want to find out what features are actually in this shell - and hopefully find a man page. If that last one is their man page, it is terrible. I cannot find any command syntax to speak of.

I am hoping to find out what core commands are included in dash and how you could write some sort of script to clear the screen as part of the logout process. That is EASY in bash because you can write login and logout specific scripts. With dash, I am unsure just how much you get. Do you use .profile to get the stuff you run at login, .dashrc, or something else? Korn Shell uses .profile and .kshrc, Bash uses .profile, .bashrc, and also .bash_login and .bash_logout (unless I am forgetting the exact names). In any event, Bash has what I want, but I think I am going to have to jury rig something to get what I want in dash - I will probably have to say clear;logout or even /usr/bin/clear;logout to get the effect I am looking for.



_________________
Brian Masinick
Distros: SimplyMEPIS
sidux - no CAPS!, antiX, Debian
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Command Line Commands All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All content © 2024-2009 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2009 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse