10-30-2013
BTW, the bash-3 builtin test or [ ] has a buggy implementation (fixed in bash-4):
test -w and test -r call stat() rather than access(). That goes wrong
- if a file appears writable but the file system is mounted read-only
- a network file system like NFS or AFS, where the Server controls file access independent of the Unix permissions. Examples: NetApp NFS share on an NTFS-style volume; AFS with invisible ACLs.
This User Gave Thanks to MadeInGermany For This Post:
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I know what the man command does and I know how to use it, but i am trying to find an answer to a question. When you run man on an other command it will give you the first page on your screen and then you hit the space bar and it brings up the second page. What command option would I use if I... (5 Replies)
Discussion started by: shipoffools
5 Replies
2. Shell Programming and Scripting
Hi all,
Im trying to figure out what the command would be to launch terminal windows from the command line in Open Step 4.2 . (looking for something similiar like /usr/bin/xterm or /usr/bin/dtterm etc)
echo $TERM = vt100
echo $SHELL = /bin/csh
Im combing over alot of OpenStep 4.2 and... (3 Replies)
Discussion started by: Rocketman8541
3 Replies
3. Solaris
Hi,
I would like to develop a man page as the one we usually get when we execute man <command name>. This man page will be for a samll utility that i have written.
If this is not possible then what are the available possibilites for creating such help.
thanks in advance. (2 Replies)
Discussion started by: raghu.amilineni
2 Replies
4. Linux
Hey people do u know how to disable the man command in linux???
i am not able to do anythg apart from disabling the permission for /usr/bin/...
i dont wanna uninstall the man / man pages also...
this has been one of the toughest challenges i have come across in linux...
can anybody... (5 Replies)
Discussion started by: linux.user
5 Replies
5. UNIX for Dummies Questions & Answers
hi,
i am aa unix amateur and i am using tsh, csh and bash most of the time.
i have been looking over the net to find a summary of the differences in command syntax for example:
in csh and tsh you do
alias whatday date
while in bash and ksh you do
alias whatday=date
i just want more... (2 Replies)
Discussion started by: hobiwhenuknowme
2 Replies
6. UNIX for Dummies Questions & Answers
Guys
I now have a script that's working in a BASH environment, however one line doesn't appear to be working on an embedded device that has a busybox therefore ASH shell. I've googled but there's very little I can find regarding the ASH shell.
In BASH the following line works...
if ] ;... (6 Replies)
Discussion started by: Bashingaway
6 Replies
7. Shell Programming and Scripting
How to get only the options and arguments of a command excluding the
descriptive help? (1 Reply)
Discussion started by: mayur_verma
1 Replies
8. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I am trying to outut the man command output into a text file which will help me for future reference.
2.... (8 Replies)
Discussion started by: hariniiyer300
8 Replies
9. UNIX for Beginners Questions & Answers
hi linux expert
how to use man command for get help about "extended regular expression"?
many thanks
samad (2 Replies)
Discussion started by: abdossamad2003
2 Replies
LEARN ABOUT DEBIAN
go-testflag
GO-TESTFLAG(7) Miscellaneous Information Manual GO-TESTFLAG(7)
NAME
go - tool for managing Go source code
DESCRIPTION
The 'go test' command takes both flags that apply to 'go test' itself and flags that apply to the resulting test binary.
The test binary, called pkg.test, where pkg is the name of the directory containing the package sources, has its own flags:
-test.v
Verbose output: log all tests as they are run.
-test.run pattern
Run only those tests and examples matching the regular expression.
-test.bench pattern
Run benchmarks matching the regular expression. By default, no benchmarks run.
-test.cpuprofile cpu.out
Write a CPU profile to the specified file before exiting.
-test.memprofile mem.out
Write a memory profile to the specified file when all tests are complete.
-test.memprofilerate n
Enable more precise (and expensive) memory profiles by setting runtime.MemProfileRate. See 'godoc runtime MemProfileRate'. To pro-
file all memory allocations, use -test.memprofilerate=1 and set the environment variable GOGC=off to disable the garbage collector,
provided the test can run in the available memory without garbage collection.
-test.parallel n
Allow parallel execution of test functions that call t.Parallel. The value of this flag is the maximum number of tests to run
simultaneously; by default, it is set to the value of GOMAXPROCS.
-test.short
Tell long-running tests to shorten their run time. It is off by default but set during all.bash so that installing the Go tree can
run a sanity check but not spend time running exhaustive tests.
-test.timeout t
If a test runs longer than t, panic.
-test.benchtime n
Run enough iterations of each benchmark to take n seconds. The default is 1 second.
-test.cpu 1,2,4
Specify a list of GOMAXPROCS values for which the tests or benchmarks should be executed. The default is the current value of
GOMAXPROCS.
For convenience, each of these -test.X flags of the test binary is also available as the flag -X in 'go test' itself. Flags not listed
here are passed through unaltered. For instance, the command
go test -x -v -cpuprofile=prof.out -dir=testdata -update
will compile the test binary and then run it as
pkg.test -test.v -test.cpuprofile=prof.out -dir=testdata -update
AUTHOR
This manual page was written by Michael Stapelberg <stapelberg@debian.org>, for the Debian project (and may be used by others).
2012-05-13 GO-TESTFLAG(7)