I have a basic issue that I can't seem to search for since I'm not sure how to describe the behavior. Could anyone kindly assist the novice?
(Sample) File Data:
Code:
Expected output:
Actual output:
I see that it has taken the "shutdown" portion of the echo command and overwritten the word "configure" but I don't understand why or how to correct the behavior.
Thanks for taking the time to read my post
Last edited by Franklin52; 12-02-2012 at 08:45 AM..
Reason: Please use code tags
I put this here because it is a 'behavior' type question..
I seem to remember doing ls .* and getting all the .-files, like
.profile
.login
etc.
But ls .* doesn't do that, it lsts the contents of every .*-type subdirectory.
Is it supposed to?
I should think that a -R should be given to... (10 Replies)
Echo is removing extra blank spaces. See the command.
export INSTALLDIR=”First Second /Two Space”
echo $INSTALLDIR
out put: First Second /Two Space
Here only on blnak space is present while with command
Echo “$INSTALLDIR”
Out put: ”First Second /Two Space”
It's correct output... (2 Replies)
Hi,
I have Sun SPARC Enterprise T5140 with two 2,5" 15rpm 146GB SAS HDD. In friday there were a lot of errors with fs on them. After reconfiguring all seemed to be fine but today I get the following strange behavior of df -kh command and troubles with files, I written on first disk in friday.... (9 Replies)
So in my shell i execute:
{ while true; do echo string; sleep 1; done } | read line This waits one second and returns.
But
{ while true; do /bin/echo string; sleep 1; done } | read line continues to run, and doesn't stop until i kill it explicitly.
I have tried this in bash as well as zsh,... (2 Replies)
Bit of a weird one i suppose, i want to use an echo inside an echo... For example...
i have a script that i want to use to take users input and create another script. Inside this script it creates it also needs to use echos...
echo "echo "hello"" >$file
echo "echo "goodbye"" >$file
... (3 Replies)
Our comp-operator has come across a peculiar ‘feature'. We have this directory where we save all the reports that were generated for a particular department for only one calendar year. Currently there are 45,869 files. When the operator tried to backup that drive it started to print a flie-listing... (3 Replies)
echo `echo ` doesn't echoes anything. And it's logic. But
echo `echo `echo ` ` does echoes "echo". What's the logic of it? the `echo `echo ` inside of the whole (first) echo, echoes nothing, so the first echo have to echo nothing but echoes "echo"
(too much echoing :P):o (2 Replies)
Not sure if this should be here or in the security section.
I am developing software that dynamically manipulates netfilter/iptables rules (through system() calls of the command strings, I'm not trying to hack the netfilter code). Basically, UDP messages that are sent by an application on, say,... (0 Replies)
I am trying to get my history in sync in multiple bash sections and things aren't working the way I expect.
Desired behavior, hitting esc-K in all bash sessions (same userid and machine) will use the same history.
Observed behavior: Esc-k shows the history of the current session, rather than... (8 Replies)
Ok, so I have been struggling with this for a few days and I think I need an explanation of a few things before I go any further. I'm not sure it's possible to do what I'm trying, so before I pull my hair out, here is what I'm doing:
I have written a program in LiveCode that sits on our... (2 Replies)
Perl::Critic::PolicyParameter::Behavior::Enumeration(3) User Contributed Perl DocumentationPerl::Critic::PolicyParameter::Behavior::Enumeration(3)NAME
Perl::Critic::PolicyParameter::Behavior::Enumeration - Actions appropriate for an enumerated value.
DESCRIPTION
Provides a standard set of functionality for an enumerated Perl::Critic::PolicyParameter so that the developer of a policy does not have to
provide it her/himself.
NOTE: Do not instantiate this class. Use the singleton instance held onto by Perl::Critic::PolicyParameter.
INTERFACE SUPPORT
This is considered to be a non-public class. Its interface is subject to change without notice.
METHODS
"initialize_parameter( $parameter, $specification )"
Plug in the functionality this behavior provides into the parameter, based upon the configuration provided by the specification.
This behavior looks for two configuration items:
enumeration_values
Mandatory. The set of valid values for the parameter, as an array reference.
enumeration_allow_multiple_values
Optional, defaults to false. Should the parameter support a single value or accept multiple?
"generate_parameter_description( $parameter )"
Create a description of the parameter, based upon the description on the parameter itself, but enhancing it with information from this
behavior.
In this specific case, the universe of values is added at the end.
AUTHOR
Elliot Shank <perl@galumph.com>
COPYRIGHT
Copyright (c) 2006-2011 Elliot Shank.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license
can be found in the LICENSE file included with this module.
perl v5.16.3 2014-06-09 Perl::Critic::PolicyParameter::Behavior::Enumeration(3)