I'm having an issue where the output of the 'set' command gives me extra garbage and I'm wondering if anybody can help point me toward a solution. Actually, it looks like part of a script, not random garbage. Anyway, when I type set I get this output (shortened for brevity): -
BASH=/bin/bash
-
BASH_ARGC=()
-
BASH_ARGV=()
-
BASH_COMPLETION=/etc/bash_completion
-
BASH_COMPLETION_DIR=/etc/bash_completion.d
-
BASH_LINENO=()
-
BASH_SOURCE=()
-
..... snip (it continues like normal for a while) ....
-
.............
-
.............
-
WINDOWID=46137436
-
WINDOWPATH=7:7:7:7
-
XAUTHORITY=/home/user/.Xauthority
-
XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/
-
XDG_SESSION_COOKIE=3a7c2617118a89c0941a89564810cba3-1215613306.783332-151702627
-
_=set
-
bash205='3.2.33(1)-release'
-
bash205b='3.2.33(1)-release'
-
bash3='3.2.33(1)-release'
-
_alias ()
-
{
-
local cur;
-
COMPREPLY=();
-
cur=${COMP_WORDS[$COMP_CWORD]};
-
case "$COMP_LINE" in
-
*[^=])
-
COMPREPLY=($( compgen -A alias -S '=' -- $cur ))
-
;;
-
*=)
-
COMPREPLY=("$( alias ${cur%=} 2>/dev/null | sed -e 's|^alias '$cur'\(.*\)$|\1|' )")
-
;;
-
esac
-
}
-
_apt_cache ()
-
{
-
local cur prev special i;
-
COMPREPLY=();
-
cur=`_get_cword`;
-
prev=${COMP_WORDS[COMP_CWORD-1]};
-
if [ "$cur" != show ]; then
-
for ((i=0; i < ${#COMP_WORDS[@]}-1; i++ ))
-
do
-
if [[ ${COMP_WORDS[i]} == @(add|depends|dotty|policy|rdepends|madison|show?(pkg|src|)) ]]; then
-
special=${COMP_WORDS[i]};
-
fi;
-
done;
-
fi;
-
if [ -n "$special" ]; then
-
..... snip (you get the point, it goes on and on with other stuff) .....
-
.............
-
.............
So, any idea why I'm getting the script stuff as output from 'set'?
If it helps, my linux at the moment is a vmware image of ubuntu 8.04 (using vmware player, not workstation or server).If you're interested, the image I'm using can be found at http://www.vmware.com/appliances/directory/1224 4 2275
I don't know if this is still an issue, but if so, what is the exact command you're using, that gives you this output? I'm guessing it's not processing some file but printing it instead...
Greetings,
Nepomuk
I don't know if this is still an issue, but if so, what is the exact command you're using, that gives you this output? I'm guessing it's not processing some file but printing it instead...
Greetings,
Nepomuk
Thanks Nepomuk, I forgot to check this thread for a long time, but it's still an annoyance.
The command I run is just 'set' (hoping to just see a list of environment variables). I'm thinking maybe there is an error in some config file somewhere but I dont know enough about bash to know what's going on.
any help is appreciated but it's not like I need to run 'set' very often so I can live with the strangeness.
Thanks Nepomuk, I forgot to check this thread for a long time, but it's still an annoyance.
The command I run is just 'set' (hoping to just see a list of environment variables). I'm thinking maybe there is an error in some config file somewhere but I dont know enough about bash to know what's going on.
any help is appreciated but it's not like I need to run 'set' very often so I can live with the strangeness.
Hm, well I just checked and in my Ubuntu VM it's at least similar, if not the same. (Couldn't bother to check if all of the code was the same as yours.)
Having a look at the output, the first (in my case 71) lines DO seem to be the environment variables, so in my case
helps. Not ideal, I'll admit, but at least a solution.
Greetings,
Nepomuk
Thanks again, at least you've helped me confirm that it's not just some idiot thing I've done to cause this :)
Sign in to post your reply or Sign up for a free account.
Similar topics
by: bearophileHUGS |
last post by:
Hello, I have four things to ask or to suggest, sorry if they seem
basic or already discussed.
-------------------
I am still ignorant about Tkinter. This little program, after pressing
the...
|
by: David Bernier |
last post by:
I'd like to pass on the command line two filenames.
As for example:
my_executable filename_1 filename_2
I haven't done any C programming with command line arguments so far.
I'm familiar...
|
by: aku |
last post by:
I'm looking for the absolute fastest way
to count the nr of bits that are set to "1"
in a string. Presumably I then first need the
fastest way to do this in a byte.
I think this is it, but...
|
by: G Patel |
last post by:
Hi, I'm wondering if anyone knows if the following function will
function properly as a set-bit counter on non 2s complement machines
(as K&R2 implies).
| int bitcount(unsigned x)
| {
| ...
|
by: sathyashrayan |
last post by:
Group,
Following function will check weather a bit
is set in the given variouble x.
int bit_count(long x)
{
int n = 0;
/*
** The loop will execute once for each bit of x
set,
|
by: Greg |
last post by:
Hi,
I have been unable to resolve this error message: Object Ref not set to an
instance of an object.
The issue is that I cannot determine which object reference is causing the
problem.
...
|
by: David Schwartz |
last post by:
Seems that setting an object = Nothing no longer does anything in .NET.
Garbage collection destroys the object eventually. So, does it ever make
sense to set an object = Nothing in .NET?
Thanks.
|
by: MikeT |
last post by:
This may sound very elementary, but can you trap when your object is
set to null within the object?
I have created a class that registers an event from an object passed
in the constructor. When...
|
by: Mick Duprez |
last post by:
Hi All,
I've installed Python 2.5 on a number of machines but on one I'm
having problems with the CLI.
If I fire up the 'cmd' dos box and type 'python' I get a line of
gibberish and it locks up...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |