bash -D (or bash --dump-strings) unexpected result
Instead of a dump of $ strings, I'm getting a prompt that doesn't process commands and seemingly can't be exited. Is this correct? I don't have access to a BSD or other Unix environment to allow a comparison with a non-GNU environment, but the current result certainly doesn't match the man page.
I've tried this with the following environments:
Can't say I know exactly what that command switch is for, but...
I ran it on a virtual machine (e.g. "bash -D"), and yes, you get another Bash environment--in other words a shell within a shell, but without any environment variables. For instance, my subshell had a prompt of "bash-4.1$" which (I believe) is the default prompt if $PS1 is not set.
Also, you can exit the sub-shell by pressing Ctrl-D.
Again, I'm not sure what the -D is supposed to accomplish. I just glanced at the man page, but as I recall, the description did say "no commands will be executed."
I'll play with it a little more and see if I can figure out exactly what it's intended use is.
Well, playing with it some and reading the man page literally:
As an example:
Welcome to LQ!
1 Linux Documentation Project
2 Rute Tutorial & Exposition
3 Linux Command Guide
4 Bash Beginners Guide
5 Bash Reference Manual
6 Advanced Bash-Scripting Guide
7 Linux Newbie Admin Guide
9 Utimate Linux Newbie Guide
The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!
|All times are GMT -5. The time now is 01:55 AM.|