Search Results

Search: Posts Made By: Festus Hagen
1,909
Posted By RudiC
Even sh should have "substring processing...
Even sh should have "substring processing parameter expansion" and "short circuit list operators". So try:[ "/" == ${1%/*} ] && echo "server" || echo "path"
Showing results 1 to 1 of 1

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