Zoidberg
view release on metacpan or search on metacpan
lib/Zoidberg/Fish/Commands.pm view on Meta::CPAN
}
else { # scalars
my $env = defined($$vals{$_}) ? $$vals{$_} :
defined(${$class.'::'.$_}) ? ${$class.'::'.$_} : undef ;
$ENV{$_} = $env if defined $env;
}
}
}
}
=item setenv I<var> I<value>
Like B<export>, but with a slightly different syntax.
=cut
sub setenv {
shift;
my $var = shift;
$ENV{$var} = join ' ', @_;
}
=item unsetenv I<var>
Set I<var> to undefined.
=cut
sub unsetenv {
my $self = shift;
delete $ENV{$_} for @_;
}
=item set [+-][abCefnmnuvx]
=item set [+o|-o] I<option>
Set or unset a shell option. Although sometimes confusing
a '+' switch unsets the option, while the '-' switch sets it.
man1/zoidbuiltins.pod view on Meta::CPAN
u => nounset *
v => verbose
x => xtrace *
*) Not yet supported by the rest of the shell
See L<zoiduser> for a description what these and other options do.
FIXME takes also hash arguments
=item setenv I<var> I<value>
Like B<export>, but with a slightly different syntax.
=item SetHistory
Takes either an array or an array reference and uses that
as new commandline history.
I<This routine does not alter the history file.>
man1/zoidbuiltins.pod view on Meta::CPAN
=item umask
TODO
=item unalias I<name>
Remove an alias definition.
=item unsetenv I<var>
Set I<var> to undefined.
=item wait
TODO
=item which [-a|--all|-m|--module] ITEM
man1/zoiduser.pod view on Meta::CPAN
=over 4
=item Commands
Ships a collection of standard builtin commands that one
would expects to have in a shell.
Provides: B<cd>, B<pwd>, B<exec>, B<eval>, B<source>, B<true>, B<false>,
B<newgrp>, B<umask>, B<read>, B<wait>, B<fg>, B<bg>, B<kill>, B<jobs>,
B<set>, B<export>, B<setenv>, B<unsetenv>, B<alias>, B<unalias>, B<dirs>,
B<popd>, B<pushd> and B<symbols>
=item Log
Keeps a history of your doings.
=item Intel
Takes care of tab expansion.
share/plugins/Commands.pl view on Meta::CPAN
back => 'cd -1',
forw => 'cd +1',
},
export => [qw/
cd pwd
exec eval source
true false
newgrp umask
read
wait fg bg kill jobs
set export setenv unsetenv alias unalias
dirs popd pushd
symbols reload which help
/],
}
( run in 0.475 second using v1.01-cache-2.11-cpan-0a6323c29d9 )