Search Results

Search: Posts Made By: Scrutinizer
40,241
Posted By Scrutinizer
This says more: The Open Group Base...
This says more:

The Open Group Base Specifications Issue 7 (http://www.opengroup.org/onlinepubs/9699919799/nframe.html)

Additional information on the differences:
sh-posix(1)...
40,241
Posted By Scrutinizer
Interesting, since this means that the...
Interesting, since this means that the implementation of ksh88 on HP-UX is not fully posix compliant.
They must be using a very early implementation where -a was used instead of -e, which was later...
40,241
Posted By Scrutinizer
In any other shell this will produce an error if...
In any other shell this will produce an error if there is more than one file present. If this works in a Korn shell it is probably because it is secretly using a shell builtin.
What shell are you...
40,241
Posted By Scrutinizer
I do not think -e has anything to do with it. -e...
I do not think -e has anything to do with it. -e should work in ksh. The problem is simply that wild card expansion is done by the shell before the list is past to test -e. This command only expects...
40,241
Posted By Scrutinizer
exists(){ [ -e "$1" ];};if exists...
exists(){ [ -e "$1" ];};if exists /path/filename.*; then echo exists; else echo nope; fi
:)
40,241
Posted By Scrutinizer
Try this: exists() { [ -e "$1" ] } ...
Try this:
exists()
{
[ -e "$1" ]
}

if exists /path/filename.*
then
<do some work>
else
<no files>
fi
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 06:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy