Hi,
Command "chfn" can be used to change finger information.. can anybody tell me how to unset i mean reset the same finger information.
Thanks in advance,
Chanakya (3 Replies)
Hi All,
May be this is a very simple question...
$ b=8
$ readonly b
$ echo $b
8
$ b=90
-bash: b: readonly variable
$ unset b
-bash: unset: b: cannot unset: readonly variable
I m not able to change the readonly mode of variable b
Please help me out..
Thanks
Nidhi (2 Replies)
Hi All,
Is there any way to check exit status of unset variables?
In the following code PathX is not set and the script terminates without checking exit status.
#!/bin/bash
Path="/tmp/log"
cd ${PathX:?}
if ;then
echo "Exit Status : non zero"
else
echo "Exit Status :... (2 Replies)
Could someone please tell me how to unset your .bashrc? I have tried all of these. I can't find anything useful from google.
unset -f .bashrc
unset .bashrc (9 Replies)
I'm wondering, is the number of variables will affect execution time of my bash script or maybe affect the cpu workload, cpu memory, etc ?
If I create so many variables, should I unset each one of that variables after I used them or after I think they are no longer needed?
and if my script... (2 Replies)
I have a script to start/stop/restart the tomcat application. When we run the script first time i.e stop/start it set all env variables(DISTRIB_ID,NAME,TOMCAT_CFG,....etc),but when we restart the tomcat it is running in the same shell.....I need to set the variables when i restart the tomcat(in the... (1 Reply)
I have a script with a $PASSWORD variable. I unset it right after using it, just to minimize the chance it could be left around for a snooper. That worked just fine... until I used a password with a value of "P@ssw0rd" Now, unset (even with -f, even with the variable enquoted) tells me: unset:... (1 Reply)
I have tried to thoroughly search other threads before posting this question...
I have a shell script (bsh) that I'd like to "re-execute" if the user chooses to. Before the program is executed again the local variables (those set within the script) need to be unset. Is there a command that... (6 Replies)
Hi,
Can someone tell what is the path for "unset", I tried "which" command but getting below error
# which unset
/usr/bin/which: no unset in (/usr/lib/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin/:/root/bin) (9 Replies)
Discussion started by: stew
9 Replies
LEARN ABOUT CENTOS
test::vars
Test::Vars(3) User Contributed Perl Documentation Test::Vars(3)NAME
Test::Vars - Detects unused variables
VERSION
This document describes Test::Vars version 0.005.
SYNOPSIS
use Test::Vars;
all_vars_ok(); # check libs in MANIFEST
DESCRIPTION
Test::Vars finds unused variables in order to keep the source code tidy.
INTERFACE
Exported
all_vars_ok(%args)
Tests libraries in your distribution with %args.
libraries are collected from the MANIFEST file.
If you want to ignore variables, for example $foo, you can tell it to the test routines:
"ignore_vars => { '$foo' => 1 }"
"ignore_vars => [qw($foo)]"
"ignore_if => sub{ $_ eq '$foo' }"
Note that $self will be ignored by default unless you pass explicitly "{ '$self' => 0 }" to "ignore_vars".
vars_ok($lib, %args)
Tests $lib with %args.
See "all_vars_ok".
MECHANISM
"Test::Vars" is similar to a part of "Test::Perl::Critic",but the mechanism is different.
While "Perl::Critic", the backend of "Test::Perl::Critic", scans the source code as texts, this modules scans the compiled opcode (or AST:
abstract syntax tree) using the "B" module. See also "B" and its submodules.
CONFIGURATION
"TEST_VERBOSE = 1 | 2 " shows the way this module works.
CAVEATS
https://rt.cpan.org/Ticket/Display.html?id=60018
https://rt.cpan.org/Ticket/Display.html?id=82411
DEPENDENCIES
Perl 5.10.0 or later.
BUGS
All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to
cpan-RT.
SEE ALSO
Perl::Critic
warnings::unused
B
Test::Builder::Module
AUTHOR
Goro Fuji (gfx) <gfuji(at)cpan.org>
LICENSE AND COPYRIGHT
Copyright (c) 2010, Goro Fuji (gfx). All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic for details.
perl v5.16.3 2014-06-10 Test::Vars(3)